npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

framework7.angular

v2.1.0

Published

Full Featured Mobile HTML Framework For Building iOS & Android Apps using Angularjs

Downloads

17

Readme

Framework7 + AngularJS

Join the chat at https://gitter.im/ashvin777/framework7.angular

Full Featured Mobile HTML Framework For Building iOS & Android Apps with the Power of AngularJS.

Anuglar 2 Integration (UNDER DEVELOPMENT)

https://github.com/ashvin777/framework7.angular2

Full Documentation

https://github.com/ashvin777/framework7.angular/

Kitchen Sink App

http://ashvin777.github.io/framework7.angular/kitchen-sink-material/#!/home.html

Demo App

http://ashvin777.github.io/framework7.angular/examples/#!/home.html

Install

From Bower

bower install framework7.angular

From NPM

npm install framework7.angular
    <script type="text/javascript" src="../build/js/framework7.js"></script>
    <!-- Framework7 Hook for AngularJS -->
    <script type="text/javascript" src="bower_components/framework7-angularjs/framework7.angular.hook.js"></script>
    <script type="text/javascript" src="js/index.js"></script>

Then initialize the application by setting angular:true and pushState:true in options

var myApp = {};
var mainView = {};
var $$ = Dom7;

angular.module("AngularApp", [])

.run(function() {
    myApp = new Framework7({
        modalTitle: 'Framework7',
        material: true,
        pushState: true, //set it true. It will enable the hash based navigation
        angular: true //set it to true to enable angular binding in Framework pages
    });
    mainView = myApp.addView('.view-main', {});
})

After this setup, you can define the controller, directives, services, factories or provider as per your requirement. The code structure will remain same as Framework7 standard app.

Screenshots

Routing - WIP

For now use Framework7 default router http://framework7.io/docs/router-api.html

Controller

Controller can be directly assgined to the template root element. By doing so while the Framework7 will initialize the page then AngularJS hooks compiler will compile the template and bind the data based on the scrope of the controller.

So you html template should look like this

<div data-page="calendar" class="page" ng-controller="CalendarCtrl">
	...
    ...
</div>

Framework7 Template

The templates of side panels, popover, modals etc, wrap them in a element directive and add that directive in html. Like below

Side Panel

<body ng-controller="RootCtrl"  ng-cloak >
    ...
    <panel-left></panel-left>
    <panel-right></panel-right>
    ...
</body>

Directive

app.directive("panelLeft", function() {
    return {
        templateUrl: "panel-left.html"
    }
});

app.directive("panelRight", function() {
    return {
        templateUrl: "panel-right.html"
    }
});

And defind a controller in the root element of the panels template and use it as required.

Using Framework7 Components

Framework7 components can be used as it is. Inside the controller those can be initialize like below

..
.controller("CalendarCtrl", ["$scope", function($scope) {
	....
    var calendarDefault = myApp.calendar({
        input: '#ks-calendar-default',
    });
    ....
}]);

To avoid issues

Use ng-cloak for each controller declaration in html templates.

Limitation

No limitation

Contact

[email protected]

Licence

No License is required for this plugin.