Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using bindonce with Ui Router #127

Open
cougardeploy opened this issue Jan 18, 2016 · 2 comments
Open

Using bindonce with Ui Router #127

cougardeploy opened this issue Jan 18, 2016 · 2 comments

Comments

@cougardeploy
Copy link

Can bindonce help me with a UI Router element....trying to remove the watcher off this

how can i get rid of the watcher from this

ui-sref="investments.funds({ Uid: investment.Uid })"

Thanks

@seeekr
Copy link

seeekr commented Apr 11, 2016

Put the href/url generation into controller code, set the url on the $scope, then use {{::myHrefVar}} one-time binding (or however you do that with bindonce).

@w-sz
Copy link

w-sz commented Jul 18, 2016

ui-sref="investments.funds({ Uid: '{{::investment.Uid}}' })"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants