angularjs - Dynamic tab content and params -


i trying build set of dynamic tabsets dynamic content,

http://plnkr.co/edit/bhtmin1b1dwwqyvyrpvl?p=preview

1) clicking on dashboard opens new tab directive

  • when provide content of directive, gets rendered string.
  • i've tried use html bind unsafe , $compile functions make run angular component - haven't able to

2) click on menu [project management-> project] shows list of sites, on clicking of need open tab passing parameter (proj-id or site-id)

  • the idea call function on click of site name, i'll open new tab content directive
  • but since stuck previous problem, not able this
  • is right way of passing params directive.

right now, plunkr tries o/p tab content file, string , compile - no success

[i've revised question relevant details prev question]

solution found #1:

for reason ng-bind-html-unsafe doesn't work angular elements. had create compile directive http://docs.angularjs.org/api/ng.$compile, based on info found here on sto

in tabs-directive.html, can use ngbindhtmlunsafe. make sure don't put {{}} around variable.

string:  <div ng-bind-html-unsafe="tab.content"></div> 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -