angularjs - Can I nest a $scope variable inside an ng-include? -
i wanted nest variable inside ng-include. variable in case cdn path or file path. works:
<img src="{{cdn}}uploads/avatar_{{uid}}.png" ng-src="{{cdn}}uploads/avatar_{{uid}}.png" /> this not
<div ng-controller="expr"> <div ng-include="'{{cdn}}logo.tpl'"></div> </div> this in template views , routes. don't want use directives.
ng-include evaluate whatever pass there no need use {{}}. work
<div ng-include="cdn + 'logo.tpl'"></div>
Comments
Post a Comment