Sha256: 2109270a7917817a9d03be5527c5e59135c77f6028722c7f6ad1e081b04a325d

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

# 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
    

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.19 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.18 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.17 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.14 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.12 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.11 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.7 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md
active_record_survey_api-0.0.6 spec/test_app/vendor/assets/bower_components/angular-ui/templates/README.md