0
votes
3answers
32 views

How to render HTML in a partial with ng-bind-html and $sce inside ng-repeat -> ng-switch -> ng-include?

As mentioned in the title, i can't figure out how to render html inside a partial with ng-bind-html. Here is a plunker to illustrate. http://plnkr.co/edit/YFfHsahcum7XA8GcH6b2?p=preview I tried ...
1
vote
1answer
109 views

How do I dynamically build an ng-include src?

I have the following code: <div ng-repeat="module in modules" id="{{module.Id}}"> <ng-include ng-init="bootstrapModule(module.Id)" src=""></ng-include> </div> I want to ...
1
vote
0answers
75 views

nested Angular views with IE8

TLDR: example: http://plnkr.co/edit/NeUWHh?p=preview error at IE8 console: TypeError: 'childNodes' is null or not an objectundefined seems very simple, works on any webkit browser and also on IE ...
1
vote
1answer
414 views

ng-include Stopped working after update to 1.2.0rc1

Yesterday when I was using older version, everything worked fine. My code looked like this: <div ng-repeat="widget in widgets" class="box" ng-include="widget.view"></div> Today I ...
1
vote
2answers
553 views

Angularjs 1.2: include template in repeat

I am moving to the last version of angularjs (1.2), and now it seems that i cant include templates in the repeater: http://plnkr.co/edit/K7n9sNhXe4z99VMSqTlk?p=preview I can use directive with ...
0
votes
1answer
210 views

AngularJS: Slide divs automatically with a set duration on page load

I have the following code: index <div id="app" ng-controller="AppCtrl"> <div id="container" ng-controller="PageCtrl"> <div ng-repeat="page in pages" ...
3
votes
3answers
402 views

Avoid using extra DOM nodes when using nginclude

I'm struggling to wrap my mind around how to have an ng-include not use an extra DOM element as I'm building an angular app from a plain-HTML demo. I'm working with pretty slim HTML with fully ...
0
votes
1answer
258 views

AngularJS - ng-click does not remove previous click's modifications when clicked again

So I am trying to acomplish this example: http://jsfiddle.net/pkozlowski_opensource/WXJ3p/15/ However, for some reason, when I click on one div, and then on another, it does not remove the "active" ...
0
votes
0answers
145 views

Angularjs - how to access an ng-include template's data to modify it through another template within the same controller

What I am trying to acomplish is to have two different templates within my app: one is generated through ng-repeat like so: <div ng-repeat="data in tree" ...
0
votes
1answer
397 views

AngularJS: Scope in ng-repeat

I am trying to ng-include some partials dynamically. I realize there may be other ways to do this, but I want to understand why this way isn't working. I have a controller defined as so: ...