"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 project.
bower install twigs --save-dev
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
<head>
<!-- include twigs css for twigs.globalPopups -->
<!-- after bootstrap.css and before yourOwn.css -->
<link rel="stylesheet" href="https://github.com/hatchteam/twigs/blob/master/bower_components/twigs/dist/styles/twigs.css">
</head>
<body>
<!-- here goes your app/markup -->
<!-- include angular -->
<script src="https://github.com/hatchteam/twigs/raw/master/bower_components/angular/angular.js"></script>
<!-- include twigs -->
<script src="https://github.com/hatchteam/twigs/raw/master/bower_components/twigs/dist/twigs.js"></script>
</body>
(this tutorial is only relevant for twigs core developers)