84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
directive只能由小写字母组成吗?
.directive('名称', function() { return { restrict: 'AE', template: 'Hi there', replace: true }; });
Hi there
例如,hello okhelloA not workHello not workhello_a not workhello-a not work
我的要一个词组命名怎么办?
UsingCamelCasenamingSuch as: hello A not workNamed: helloANotWork
Detailed rules:Use the following method in html
html
But this is required when defining instructions
javascriptmyApp.directive("myNewDirective", function(){...});
javascript
myApp.directive("myNewDirective", function(){...});
UsingCamelCasenaming
Such as: hello A not work
Named: helloANotWork
Detailed rules:
Use the following method in html
But this is required when defining instructions