Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ng-class doesn't work if you have ng-include element in the same tag #3991

Closed
nathanredblur opened this issue Sep 12, 2013 · 9 comments
Closed

Comments

@nathanredblur
Copy link

ng-class doesn't work if you have ng-include element in the same tag

Example
WORK

<header class="myClass" ng-class="myDinamicClass"></header>

NO WORK

<header class="myClass" ng-class="myDinamicClass" ng-include="'/myHtml.html'"></header>
@ghost ghost assigned matsko Sep 13, 2013
@matsko
Copy link
Contributor

matsko commented Sep 13, 2013

Can you provide a plunkr link please?

@nathanredblur
Copy link
Author

Example

http://jsfiddle.net/gvpRy/

@petebacondarwin
Copy link
Contributor

I think this is related to #3927

@rodyhaddad
Copy link
Contributor

This got fixed with 5eb1fb6

Jsfiddle with the latest build of angular: http://jsfiddle.net/F5zrw/

@matsko
Copy link
Contributor

matsko commented Sep 23, 2013

Good stuff.

@matsko matsko closed this as completed Sep 23, 2013
@matsko
Copy link
Contributor

matsko commented Sep 23, 2013

@rodyhaddad why did you place the same module definition code three times in your Plunkr code?

@rodyhaddad
Copy link
Contributor

@matsko hm, I didn't touch the js, just changed the script[src] to the latest build.

The original example had it defined multiple times too

@matsko
Copy link
Contributor

matsko commented Sep 23, 2013

Ahh sorry it wasn't you. @nathanredblur baaaaaaaaaah :@

@nathanredblur
Copy link
Author

Sorry @matsko (copy paste error)
http://jsfiddle.net/F5zrw/1/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants