Recommended way of integrating angularjs into html looks like:
<!doctype html>
<html xmlns:ng="http://angularjs.org" ng-app>
<body>
...
<script src="angular.js">
</body>
</html>
The question is: none of the textbooks uses xmlns:ng="http://angularjs.org"
line. Where is that important or make sense?
Should the line to be used with every module declaration?
From the documentation:
If you choose to use the old style directive syntax ng: then include xml-namespace in html to make IE happy. (This is here for historical reasons, and we no longer recommend use of ng:.)
You can see more at https://docs.angularjs.org/guide/bootstrap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With