Angular Dart - Send data to controller using router.go -
Angular Dart - Send data to controller using router.go -
i want send parameters controller using router.go redirection.
i tried :
this._router.go('game', {'data': 'mydata'}); is possible parameters :
gamecontroller(this._scope, this._router){ print(this._router.parameters['data']); } if want "print" that, returns null.
i've ran myself. don't know if way it, works:
in routes, have add together parameter 'data' 'game', like:
..addroute(name: "game", path: "/game/:data", enter: view("views/game.html")) after able fetch parameter with:
gamecontroller(this._scope, this._router){ print(this._router.parameters['data']); } seems have introduce parameters want utilize angulars routes before.
br
dart angular-dart
Comments
Post a Comment