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

fix(ngInclude): fix regression when ngInclude is present on an element with interpolated attributes #4073

Closed
wants to merge 1 commit into from

Conversation

btford
Copy link
Contributor

@btford btford commented Sep 20, 2013

Not sure what the right priority should be. 100 was too low, 1000 would have put this as the same priority as ngRepeat, 500 made the tests happy.

I also added a regression test.

Closes #3793

@mary-poppins
Copy link

@btford you are the coolest person ever.

@chirayuk
Copy link
Contributor

@mary-poppins And so are you, Miss Poppins!

it('should work when placed on an anchor link', inject(function($compile, $rootScope, $httpBackend) {
// regression

element = $compile('<div><a ng-href="#/{{href}}" ng:include="\'url\'"></a></div>')($rootScope);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use ng-include instead of ng:include in new tests.

@btford
Copy link
Contributor Author

btford commented Sep 20, 2013

@IgorMinar I addressed your comments.

@@ -281,6 +281,22 @@ describe('ngInclude', function() {
}));


it('should work when placed on an anchor link', inject(function($compile, $rootScope, $httpBackend) {
// regression #4073
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a PR# not an Issue#

@btford
Copy link
Contributor Author

btford commented Sep 20, 2013

Done

@IgorMinar
Copy link
Contributor

landed as 5eb1fb6

@IgorMinar IgorMinar closed this Sep 20, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression from 1.2.0rc1: ng-include 'bugs' href/ng-href in an anchor element
4 participants