title: Cant Get Cookies to work
body: <pre><code>var app = angular.module('rjtApp',
   ['ngRoute','ngCookies']); 
  
  app.config(['$routeProvider',
   function($routeProvider) {
  
  
    $routeProvider.
  
        when('/', {templateUrl: 'main.html'}).
  
        when('/About', {templateUrl: 'about.html'}).
        when('/Evo', {templateUrl: 'evo.html'}).
        when('/Evo1', {templateUrl: 'evo1.html'}).
        when('/ContactUs', {templateUrl: 'contactus.html', controller: 'projectCtrl'}).
        when('/NewProject', {templateUrl: 'new.html', controller: 'storeProjectCtrl'}).
        when('/Register', {templateUrl: 'register.html', controller: 'register'}).
        when('/Login', {templateUrl: 'login.html', controller: 'loginCtrl'}).
        when('/UpdateProject/:id', {templateUrl: 'views/edit.html', controller: 'editProjectCtrl'}).
        otherwise({redirectTo: '/'});
  </code></pre>
  
  <p>I'm Using the loginCtrl, to check with SQL  and return a True or False variable.</p>
  
  <pre><code>app.controller( ' loginCtrl ', [' $scope ', ' $http ', ' $location ', ' $cookie ', 
  
  function($scope, $http,$location,$cookieStore)  {   
  
  
      $scope.getFormData = function(data) {
          console.log(data.username);//getting data input by user
          console.log(data.password);//getting data input by user
          $http.post('php/login.php', data).success(function(data) {
              console.log(data);
  
  
              if (data) {//row inserted
  
                $scope.insertMessage = "Data inserted";
                $cookies.cookieStore = (data);
  
              } else {
                // if unsuccessful, bind success message to message
                $scope.insertMessage = "Data incorrect";
  
  
              }
              //reset values in form to empty
              console.log($window.sessionStorage.token);
      })  
  </code></pre>
  
  <p>Iit gives me this error:</p>
  
  <blockquote>
    <p>Error: [$injector:unpr] <a href="http://errors.angularjs.org/1.2.12/" rel="nofollow">http://errors.angularjs.org/1.2.12/</a>$injector/unpr?p0=ookieProvider%20%3C-%20%24cookie</p>
  </blockquote>
  
  <p>and as soon as i remove the $cookie the error disappears.</p>
  
  <p>I did link the angular-cookie script aswell, any help?</p>