angularjs - Angular JS Code is not working in App Webpart created in SharePoint 2013 -


i have created app web part in app created using visual studio 2013.

i writing basic code in angular js. pease find below code.

<div ng-app="myapp">  <b>welcome angularjs world in sharepoint 2013!</b>   <div ng-controller="mycontroller"  class="ng-scope">   <p>input in input box:</p>      <p>name: <input type="text" ng-model="name"></p>      <p>{{name}}</p>     </div>   </div>

the above code not working whereas same code working fine when not using app web part.

also, giving correct reference angular js. placing reference code in head section of page.

place below codes in web page

<script type="text/javascript"> var app = angular.module('myapp', []); app.controller('mycontroller', function($scope){ }); </script> 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -