I am trying to persit a ng-model as a key and trying to retrive, but its not working when its an object but working when ng-model is string.
<!DOCTYPE html>
<html>
<head>
<script data-require="angular.js@1.5.7" data- semver="1.5.7" src="https://code.angularjs.org/1.5.7/angular.js"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body>
<div ng-app="myApp">
<input type="text" ng- model="someText.something.firstName" persist="" />
</div>
</body>
</html>
Plunkr here: http://plnkr.co/edit/QQAxrOjsRzpK6u81J95J?p=preview