TOM_BHAYYA Posted June 9, 2015 Report Posted June 9, 2015 How to declare a variable in one controller and access it from another controller 2) how to serialize form data
KillChillPandey Posted June 9, 2015 Report Posted June 9, 2015 nen expert ni kanu google cheste idi dorkindi http://stackoverflow.com/questions/12008908/how-can-i-pass-variables-between-controllers
KillChillPandey Posted June 9, 2015 Report Posted June 9, 2015 http://onehungrymind.com/angularjs-communicating-between-controllers/
Comfort Posted June 9, 2015 Report Posted June 9, 2015 when you take the 1st crore you have t o put in it black bag...and then next advance will be serialized and given to the sources as breifed and we will work together in the future
secundrabadi Posted June 9, 2015 Report Posted June 9, 2015 you need to inject it from Controller 1 to Controller 2. But these two controllers needs to be under the same module
TOM_BHAYYA Posted June 9, 2015 Author Report Posted June 9, 2015 you need to inject it from Controller 1 to Controller 2. But these two controllers needs to be under the same module How to inject Ankul any examples?
Gowtham7777 Posted June 10, 2015 Report Posted June 10, 2015 use scope, injection can be done while declaring the cntrller. angular.module('myApp', []) myApp.contoller('xCntr',[]) myApp.controller(yCntrl',[xCntr])
divvu Posted June 10, 2015 Report Posted June 10, 2015 Simple Bhayya.. use $rootscope approach or use Service oriented approach. $rootscope approach lo , put the control1 variable into $rootscope, and acces the same variable in other controoler2. Service oriented approach lo, put that control1 varaible to a singleton service . and inject that serice in controoler2 , and access that varaible..
chandra916 Posted June 10, 2015 Report Posted June 10, 2015 Global ga declare chey variable Ni.....vere file lo extern chey....cho chimple
Recommended Posts