bindonce icon indicating copy to clipboard operation
bindonce copied to clipboard

Using bindonce with Ui Router

Open cougardeploy opened this issue 10 years ago • 2 comments

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

cougardeploy avatar Jan 18 '16 18:01 cougardeploy

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).

seeekr avatar Apr 11 '16 05:04 seeekr

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

w-sz avatar Jul 18 '16 10:07 w-sz