title: Trying to connect ng-model to cookies
body: <p>Hi all I'm trying to connect the basic example from angular to cookie but as soon as I import the cookies it wont work. Please see this jsfiddle: <a href="https://jsfiddle.net/y7dxa6n8/" rel="nofollow">https://jsfiddle.net/y7dxa6n8/</a></p>
  
  <p>This is what it looks like:</p>
  
  <pre><code>&lt;script&gt;
  
  var myApp = angular.module('myApp', ['ngCookies']);
  
  myApp.controller('MyController', ['$cookies', function($cookies) {
    this.u = 'rawr';
  }]);
  
  &lt;/script&gt;
  
  &lt;div ng-app="myApp"&gt;
    &lt;div ng-controller="MyController as mc"&gt;
      &lt;label&gt;Name:&lt;/label&gt;
      &lt;input type="text" ng-model="mc.u" placeholder="Enter a name here"&gt;
      &lt;hr&gt;
      &lt;h1&gt;Hello {{mc.u}}!&lt;/h1&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>