ngSwitchWhen + ngInclude on same element in v1.2

234 views
Skip to first unread message

Ben Nadel

unread,
Sep 11, 2013, 11:36:00 AM9/11/13
to ang...@googlegroups.com
Sorry I don't have a Plunkr for this; but, someone point out to me that ngSwitchWhen and ngInclude no longer work properly when on the same element. Such as:

<div ng-switch="thing">
<div ng-switch-when="foo" ng-include=" 'foo.htm' "></div>
<div ng-switch-when="bar" ng-include=" 'bar.htm' "></div>
</div>

Is this a bug? Or some unfortunate byproduct of the fact that (from what I can see) both ngSwitchWhen and ngInclude can have animations?

I have a LOT of code that combines switch/includes; so, I'm very interested to know if going to be a problem when upgrading.

Thanks!
Ben Nadel

ps. Sorry if this is not the right place to start this kind of discussion. If there is a different forum for pre-release stuff, let me know!

David Kingsbury

unread,
Sep 12, 2013, 9:20:05 AM9/12/13
to ang...@googlegroups.com
Hi Ben,

This is a bug in 1.2 (https://github.com/angular/angular.js/issues/3584), and it has been fixed in the snapshots: http://code.angularjs.org/snapshot/

Ben Nadel

unread,
Sep 12, 2013, 9:26:22 AM9/12/13
to ang...@googlegroups.com
Awesome sauce!!!

Thanks!
Ben Nadel


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.



--
Ben Nadel
Adobe Community Expert
Adobe Certified Advanced ColdFusion Developer
http://www.bennadel.com

Need ColdFusion Help?
http://www.bennadel.com/Ask-Ben
Reply all
Reply to author
Forward
0 new messages