summaryrefslogtreecommitdiffstats
path: root/js/vendor/angular-ui/templates/README.md
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-09 15:57:10 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-09 15:57:18 +0200
commit2824b43b7332e847810f042c4183ce95ee90e852 (patch)
tree9a10f31c8acbf01d72336d3d065f8c8fda4b83c5 /js/vendor/angular-ui/templates/README.md
parentf0abeddd07fcf21e30c95d58885416ef40d65391 (diff)
use bower for managing deps
Diffstat (limited to 'js/vendor/angular-ui/templates/README.md')
-rw-r--r--js/vendor/angular-ui/templates/README.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/js/vendor/angular-ui/templates/README.md b/js/vendor/angular-ui/templates/README.md
new file mode 100644
index 000000000..87ce457f1
--- /dev/null
+++ b/js/vendor/angular-ui/templates/README.md
@@ -0,0 +1,48 @@
+# ui-template directives
+
+#### NOTE: This template is going to be replaced in very near future ###
+
+These directives are boilerplates for creating your own directives.
+
+## Usage
+
+Add the template module as a dependency to your application module:
+
+ var myAppModule = angular.module('MyApp', ['ui.directives.template'])
+
+Apply the directive to your html elements:
+
+ <span ui-template num="SomeNumber"></span>
+
+Default styles are in angular-ui.css and are pretty boring, you could just override these in your
+stylesheet and make things more interesting
+
+### Options
+
+All the options can be passed through the directive or set on the html element.
+NOTE: attributes override controller options
+
+ myAppModule.controller('MyController', function($scope) {
+ $scope.SomeNumber = 123;
+ $scope.uiTemplateOptions = {
+
+ };
+ });
+
+ // two-way binding with default for scoped.options uiTemplateOptions
+ <span ui-template ng-model="SomeNumber"></span>
+
+ // one way binding with your own name for scoped options
+ <span ui-template options="myOptions" num="SomeNumber"></span>
+
+
+### Notes
+
+ui-template
+ - one-way binding unless you have in an ng-repeat
+ - does not currently work with ng-model.
+ - is supported only for attribute style elements
+
+### Todo
+ - support ng-model
+ \ No newline at end of file