You have to compile the new content.

here's an example: http://jsfiddle.net/9rct8/

The html is in an inline string but you can see that you could retrieve the 
html through other means as well, it's just a string after all. I can't 
think of a use case for dynamic tabs though.

On Friday, March 21, 2014 3:15:46 AM UTC-4, benbai123 wrote:
>
>
> Hi Group,
>
> Assume using the "Create Components" sample at http://angularjs.org/, 
> there are already two panes under tabs.
> Now I want to add a third pane with a button click, is this doable?
>
> One possible way that I have tried is regenerate all html and call 
> bootstrap manually,
> but the performance is not good and may cause blinking if need some extra 
> processing within link function.
>
> I know this is not the recommended way in angularjs, but still want to 
> know whether it is possible if I really need to achieve.
>
> Thanks in advance
>

-- 
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.

Reply via email to