Directive can only be composed of lowercase letters?
.directive('名称', function() {
return {
restrict: 'AE',
template: '<p>Hi there</p>',
replace: true
};
});
For example,
hello ok
helloA not work
Hello not work
hello_a not work
hello-a not work
What should I do if I want to name it with a phrase?
Using CamelCasenaming
Such as: hello A not work
Named: helloANotWork
Detailed rules:
Use the following method in html
But this is required when defining instructions