angularjs - jsfiddle set-up with angular resource -


i have strange issue setting jsfiddle. have tried adding angular library doesn't seem work in mine.

mine- not working

example working

any thoughts?

(code below compulsory not issue identical both)

var app = angular.module('app',[]);  function appctrl($scope) {     $scope.name = 'sally'; } 

you forgot set ng-app. in version 1.0.5 not yet required, since somewhere 1.2.x have set .

try this:

<div ng-app="app" ng-controller="appctrl">     hello {{name}} </div> 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -