Hi Jason,
I think you are missing some points in Angular. Can you put up a
plunk/fiddle that show’s your problem in more detail.
With the current information I have, I would say but something like this is
your template:
<button ng-click='find("onHold")'>Onhold button</button>
But I’m not sure that is what you are asking.
BTW, you are using ng-init in a way that’s not intended use! From the manual
<https://docs.angularjs.org/api/ng/directive/ngInit>:
The only appropriate use of ngInit is for aliasing special properties of
ngRepeat <https://docs.angularjs.org/api/ng/directive/ngRepeat>, as seen in
the demo below. Besides this case, you should use controllers
<https://docs.angularjs.org/guide/controller> rather than ngInit to
initialize values on a scope.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.