HI! Not 100% sure how you want it to work but this plunk might give you some ideas: http://plnkr.co/edit/yjd39fAiMNcOiOfXYtkZ?p=preview
The main problem was scoping - item's template doesn't have the same scope as your page. And, BTW, you don't need to include jQuery and Bootstrap's JavaScript! Cheers, Pawel On Tue, Feb 25, 2014 at 8:16 PM, Ricardson Albuquerque <[email protected]> wrote: > Hi all, > > I'm new on angular and sorry about my bad english. > > I have a plnkr example with my problem here: > http://plnkr.co/edit/9NuMypVU0g2lgMrjoBdK?p=preview > > you can see that I have a function "getCatName" in searchCtrl, but it never > trigged. > > in customtemplate.html you can find the caller. > > because the call to this method that does not work, the element is invisible > > if someone can tell me what I'm doing wrong, I would be very grateful. > > > > Thanks. > > Ricardson Albuquerque > > -- > 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/groups/opt_out. -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/ -- 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/groups/opt_out.
