Tuesday, June 2, 2015

angularjs directive not working

js 

app.directive('onlyLabelName', function($http) {
......
}

html

<input onlyLabelName><input>


when I open AngularJS websites(https://docs.angularjs.org/guide/directive),I see information on below:

The normalization process is as follows:
  1. Strip x- and data- from the front of the element/attributes.
  2. Convert the :-, or _-delimited name to camelCase.
So,I  need change onlyLabelName to only-label-name

No comments:

Post a Comment