Stop AngularJS inserting using ng-include

前端 未结 2 953
不思量自难忘°
不思量自难忘° 2021-01-14 09:49

I\'m using the Foundation layout framework, which automatically floats the last sibling of .column to the right and I really appreciate this is a behaviour. How

2条回答
  •  执笔经年
    2021-01-14 10:31

    Also you can try my version of include directive that does not creates a scope: Gist source.

    As no scopes are created, AngularJS should not create additional element to mainain scope (it actually use data attributes to store link to scope).

提交回复
热议问题