How do you share data between controllers in AngularJs?
Answers
Answered by
0
myApp. service('SharedDataService', function () { var Product = { ...
var myApp = angular. module("myApp", ['CalService']); myApp. ...
<div ng-controller="DataController1"> <h2>In Controller 1h2>
var myApp = angular. module("myApp", ['CalService']); myApp. ...
<div ng-controller="DataController1"> <h2>In Controller 1h2>
Similar questions