I think you should probably separate concerns: 1. Implement tabs component with ability to select active tab programmatically. 2. Determine what tab to activate inside of your controller.
You can implement additional services if you want to automate things up a little. Granular components and services is a very good thing from reusability perspective than monolithic ones. And as Thomas said - it's not really a trivial task to implement such a component from ground-up. You should have a very good reason to do so. And if you are still going to implement it yourself - do a thorough inspection of available solutions, features that they have, implementation details etc. It will help you to come up with a good design and to avoid some pitfalls. On Friday, October 31, 2014 12:45:49 AM UTC+3, AwesomeANgular wrote: > > Hi > I am trying to devolp tabs and my requirment is need to activate a > particular tab passed on query string parameter, how do i approach this > problem ?? > > Also can i change the views without changing the urls ?? > -- 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.
