Added save and load functionality in angular.