document.cookie = "username=smith";
$cookies.FromPage = 'has value';
When using $cookies in angular > 1.3 you should use its methods
putObject(key, objectValue) and
remove(key) to update the store and
getAll() to access its content.