angularjs - jsfiddle set-up with angular resource -
i have strange issue setting jsfiddle. have tried adding angular library doesn't seem work in mine.
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
Post a Comment