title: Angular and $cookies - $cookies.get is not a function
body: <p>I'm trying to use cookies within Angular - here's what I'm trying:</p>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular-cookies.min.js"&gt;&lt;/script&gt;
  
  var capApp = angular.module('capApp', ['ngRoute','ui.bootstrap','ngCookies']);
  
  capApp.controller('cookieCtrl', ['$scope','$cookies', function($scope, $cookies) {
    var favoriteCookie = $cookies.get('user_id');
    alert(favoriteCookie);
  }]);
  </code></pre>
  
  <p>I get this error in the console:</p>
  
  <pre><code>TypeError: $cookies.get is not a function
  </code></pre>
  
  <p>Any ideas where I'm going wrong?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Check which version of Angular you are using for everything - any Angular guys read this, make the version switch in the docs bright green and huge! You simply don't notice it.</p>