阅读背景:

使用$ scope。$ destroy解决了内存泄漏问题,但违反了指令

来源:互联网 

I have a child directive that is quite dynamic running in a TypeScript AngularJS application. The template and the controller are attached at runtime based on what it needs to do for a given situation and the template itself contains a number of directives. I need to be able to show multiple directives on the page, so I use an isolated scope between each one. I have another directive that's responsible for keeping track which of these child directives should be on the page at any given time (referred to as the parent directive).I have a child directive that is quite dynamic




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: