Search code examples
jsfiddle

Angularjs module error in jsfiddle but works fine in plnkr


Here i have https://jsfiddle.net/1nivas/6g4hxcof/ which is not working
Here is the same angularjs template in https://plnkr.co/edit/u49sV6xhhFOr7bffvLWt?p=preview which is working fine.
Can you look at and tell me whats wrong. I would like to use jsfiddle because its looks nice. I never used jsfiddle before

// the main (app) module
var app = angular.module("myApp", []);

// add a controller
app.controller("myCtrl", function($scope) {
    $scope.msg = "hello world";
});
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<body ng-app="myApp" ng-controller="myCtrl">
    {{msg}}
</body>


Solution

  • include AngularJS 1.4.8 in you fiddle

    snapshot attached here