zachfitz / Ionic-Material

Material Design style and animations for Ionic
http://ionicmaterial.com
Other
2.9k stars 904 forks source link

How to pass $stateParams to a fab #197

Open mikepc opened 8 years ago

mikepc commented 8 years ago

I've tried a number of different methods to get $stateParams passed to fabContent.

Basically I need a fab that is linked to a page passing a param

eg. app.contact({ id : $stateParams.contactId }), $stateParams doesn't have the params of the page the fab is rendered on. Tried injecting in the app controller and the fab content controller.

I'm looking for an example to pass params to fab that are $stateParams driven.