"And Calimero was a hatchling no more - old enough to build his own nest..."
Twigs is a library of useful Services and Directives for AngularJS applications. It evolved out of the Hatch project.
Branch | Status |
---|---|
master | |
develop |
- Add twigs as a dependency to your bower.json.
"dependencies": {
"angular": "~1.2.12",
"twigs": "0.1.0"
}
-
run bower install
-
Reference the twigs modules you want to use in your angular module's declaration.
var App = angular.module('MyApp',['twigs']);
- Reference the needed files in your index.html
<body>
<!-- here goes your app/markup -->
<!-- include angular -->
<script src="components/angular/angular.js"></script>
<!-- include twigs -->
<script src="components/twigs/dist/twigs.js"></script>
</body>
- API reference http://hatchteam.github.io/twigs/docs/#/api/
- check out the code
- run npm install
- run grunt test:unit