Html – Angular JS installation on netbeans

angularjsangularjs-directivehtmlnetbeans-7

I installed Angular JS plugin on my netbeans 7 which works fine but I am unable to get the drop down directive suggestion for angular JS like ng-app, ng-model="name" etc. In fact, the HTML page shows warning Attribute "ng-app" not allowed on element "html" at this point.

I used http://plugins.netbeans.org/plugin/40296 to install plugin, below is what I did in my index.html:

<html ng-app>
<head>
    <script src="js/angular-0.9.19.min.js"></script> 
    <script src="js/angular.js"></script> 
</head>
<body>
<h1>Hello {{1+2}} </h1>

Best Answer

Speaking for the NetBeans team, the truth is that we would like to improve the AngularJS support going forward. In NetBeans 7.3, you are right that you will get a warning on attributes like ng-app, ng-model etc. You can get rid of this error using the hint on the first line: "Disable HTML error checking for this file". We are working on support for AngularJS and other frameworks as we speak, please follow the NetBeans Web Client blog at https://blogs.oracle.com/netbeanswebclient/ to get updates on new features coming in the next release.

Related Topic