Which method do you suggest?

33 views
Skip to first unread message

John Brown

unread,
Sep 28, 2015, 4:12:22 PM9/28/15
to AngularJS
Hello All, 

Im new to angular, so please be kind :-) 

Im trying to use a tab containing 3 tabs. Lets call them A, B, C. What I would like is when I click A, I load A.HTML, B loads B.HTML.. 

Each tab will contain a set of controls. I would like angular to work within these tab html files to be able to use its functionality.

Ive been running in circles up to this point so any tips would be helpful.

I looked at directives. However these [if I understood correctly] load automatically, and therefore cant change on button/link click
I looked at ng-include. This may work [I think]. If I point the ng-include to a variable and set the links points to a function which in turn will change the variable
I havent looked at Routing. Is it overkill? 

Thank you all!! Much appreciated. 

Sukhdev Tur

unread,
Sep 28, 2015, 9:58:19 PM9/28/15
to AngularJS

David Busuttil

unread,
Sep 29, 2015, 4:57:44 AM9/29/15
to ang...@googlegroups.com
Thank you very much for your help. This seems to do the trick. Off to understand and learn... 

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/5E2PkT0-RiE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.



--
CONFIDENTIALITY NOTICE:
The information contained in this transmission is confidential and may also be legally privileged. It is intended for the addressee(s) stated above. If you are not the addressee you must not disclose, copy or disseminate the information contained herein, unauthorised use is unlawful and strictly prohibited. If you are not the person named as the recipient of this transmission please notify the sender immediately via e-mail and delete this e-mail from your system.
Thank you for your co-operation.

Reply all
Reply to author
Forward
0 new messages