Edit in JSFiddle

var tnsApp = angular.module('TNSApp',['ngCookies'])
.controller('TNSCookieCtrl', ['$scope','$cookies', function ($scope,$cookies) {
 	// Set cookie
 	$cookies.myCookie = 'I\'m a test cookie';
  
  // Retrieve cookie
  var testCookie = $cookies.myCookie;
  $scope.myName = testCookie;
}]);
header{
    width:100%;
    padding:20px;
    text-align:center;
    font-size:30px;
    font-style:bold;
}

div{
    width:100%;
    padding:20px;
    text-align:center;
    font-size:25px;
}

.red-text{
    color:red;
}
<header>
    Tuts N Sols<br>
    AngularJS Cookie Sample
</header>

<div ng-controller="TNSCookieCtrl">
    Hello, <span class="red-text">{{myName}}</span>!
</div>