ERROR:
Uncaught Error: [$injector:modulerr] Failed to instantiate module wrApp due 
to:
Error: [$injector:modulerr] Failed to instantiate module ngCookies due to:
Error: [$injector:nomod] Module 'ngCookies' is not available! You either 
misspelled the module name or forgot to load it. If registering a module 
ensure that you specify the dependencies as the second argument.

Basic HTML code:

<!DOCTYPE html>
<html lang="en" ng-app="wrApp">
<head>
</head>
<body ng-controller="appController">
<script type="text/javascript" 
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js";></script>
<script type="text/javescript" src="js/angular-cookies.js"></script>

<script type="text/javascript" src="js/wr-login.js"></script>
</body>
</html>


JS code:

var app = angular.module('wrApp',['ngCookies']);

app.controller('appController', ['$cookies','$cookieStore', 
function$cookies,$cookieStore) {
  $cookieStore.put('fruit','Apple');
  console.log($cookieStore.get('fruit'));
}]);

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to