I have added some data in local storage in index.js file in javasrcipt using
var account = {
name: name,
email: email
};
//converts to JSON string the Object Literal
account = JSON.stringify(account);
localStorage.setItem('Account', account);
console.log("cookies"+localStorage.getItem('Account'));
my log returns me data saying cookies{"name":"Chetan shah" , "email":"some email id"}
Now I want to get this item to my controller.js in angularjs.I have used https://github.com/grevory/angular-local-storage this link
inside controller i wrote the below code
var classFinder= angular.module('classFinder',['onsen.directives', 'ngTouch','ngCookies','LocalStorageModule']);
classFinder.controller('courseController',['$scope', '$window', '$http', '$cookieStore','localStorageService',function($scope,$window,$http,$cookieStore,localStorageService){
var myaccount = localStorageService.get('Account');
console.log("cookiestore"+myaccount);
But my console return cookiestore null
How can i achieve the data from index.js to controller.js !!