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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -