Have it in a service, and have a reference to the service on any controller (therefore scope) that you want to bind it into the html
On Thursday, January 8, 2015, Sander Elias <[email protected]> wrote: > Hi Biswarup, > > I'm not sure I understand what you need, but yes, that is easily possible. > However usually this point's to a code smell. > As I don't know what you are looking for, I can't be of much help. > > If you would build a plunk > <http://plnkr.co/edit/tpl:UgRR2r6xmQUykBeltXPY?p=preview> of what it is > you are trying to do, you are probably getting more helpfull answers ;) > > Regards > Sander > > -- > 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] > <javascript:_e(%7B%7D,'cvml','angular%[email protected]');>. > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Tony Polinelli -- 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.
