angular/angular.js — pull request #1802 by mking (2013-01-14 08:55:08+00:00)
Title: ng-cookie directive

```

```
This persists `$scope.name` to cookie['name'] whenever the model changes, deletes the cookie when the model goes undefined, and sets the initial value of `$scope.name` to cookie['name'].

(The cookie name is isn't generated from the model name because cookies have bigger scope (domain, path) than models (controller).)