@prakshepp wrote:
I have created ionic side menu app. I am passing 3 param from once view to another using " $state.go("appmenu.searchResults", { param1: 'a', param2: 'b', param3: 'c' });".
I have declare url "'/searchResults/:param1/:param2/:param3'" in my routes.js as well.
When I run app using visual studio ( in browser) its working fine. I can see params passed to second view.
When I debug in actual device or emulator or build app using phone gap and test in phone its not working.
By output log i can see this only,"[object Object]" at file: file:///android_asset/www/js/controllers/SearchController.js (7)
[chromium] [INFO:CONSOLE(25642)] "Error: [ng:areq] Argument 'searchResultsCtrl' is not a function, got undefined
[chromium] http://errors.angularjs.org/1.4.3/ng/areq?p0=searchResultsCtrl&p1=not%20a%20function%2C%20got%20undefined
[chromium] at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:13380:12
[chromium] at assertArg (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:15082:11)
[chromium] at assertArgFn (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:15092:3)
[chromium] at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:22287:9
[chromium] at self.appendViewElement (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:56883:24)
[chromium] at Object.switcher.render (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:54995:41)
[chromium] at Object.switcher.init (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:54915:20)
[chromium] at self.render (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:56743:14)
[chromium] at self.register (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:56701:10)
[chromium] at updateView (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:62357:23)", source: file:///android_asset/www/lib/ionic/js/ionic.bundle.js (25642)I don't know what causing this.
Can any one please help me on this one?
Posts: 1
Participants: 1