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

fix($compile): properly denormalize templates when only one of the start/end symbols is different #13848

Closed

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Jan 26, 2016

Previously, if either of the start/end interpolation symbols remained unchanged (i.e. {{ or }}), then directive templates would not be denormalized properly. Changing only one of the start/end symbols (but not both) is an uncommon but legitimate usecase.

…art/end symbols is different

Previously, if either of the start/end interpolation symbols remained unchanged (i.e. `{{` or `}}`),
then directive templates would not be denormalized properly. Changing only one of the start/end
symbols (but not both) is an uncommon but legitimate usecase.
@@ -3137,6 +3137,54 @@ describe('$compile', function() {
});


it('should support custom start interpolation symbol, even when `endSymbol` doesn\'t change',
Copy link
Contributor

Choose a reason for hiding this comment

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

endSymbol is the default? (and below)

Copy link
Member

Choose a reason for hiding this comment

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

What @gkalpak means is that these test that the functionality works even if you change only one of startSymbol and endSymbol

Copy link
Contributor

Choose a reason for hiding this comment

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

I know, I just thought it was more explicit to state that the other symbol remains the default symbol. As is works for me though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I meant to change it as @Narretz suggested upon merge, but forgot to amend the commit before pushing 😞

@Narretz
Copy link
Contributor

Narretz commented Jan 26, 2016

LGTM with a small style suggestion

@petebacondarwin
Copy link
Member

LGTM

@gkalpak gkalpak closed this in 8348365 Jan 26, 2016
gkalpak added a commit that referenced this pull request Jan 26, 2016
…art/end symbols is different

Previously, if either of the start/end interpolation symbols remained unchanged (i.e. `{{` or `}}`),
then directive templates would not be denormalized properly. Changing only one of the start/end
symbols (but not both) is an uncommon but legitimate usecase.

Closes #13848
@gkalpak
Copy link
Member Author

gkalpak commented Jan 26, 2016

Backported to v1.4.x as 2d44a68.

@gkalpak gkalpak deleted the fix-compiler-denormalizeTemplate branch January 27, 2016 13:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants