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

fix(ngMessageFormat): minified symbol and nested required expression #11592

Closed
wants to merge 1 commit into from

Conversation

chirayuk
Copy link
Contributor

Add an E2E test that works against the minified module to test that the
minified build works correctly.

Fix a bug where mustHaveExpression was passed through to submessages
unchanged. Use of the messageFormat syntax automatically means that you
are using an expression. Therefore, submessages should not be required
to also have messages. This closes #11414

Add an E2E test that works against the minified module to test that the
minified build works correctly.

Fix a bug where mustHaveExpression was passed through to submessages
unchanged. Use of the messageFormat syntax automatically means that you
are using an expression.  Therefore, submessages should not be required
to also have messages.  This closes angular#11414
@@ -5,11 +5,11 @@
// This file is compiled with Closure compiler's ADVANCED_OPTIMIZATIONS flag! Be wary of using
// constructs incompatible with that mode.

var $interpolateMinErr = angular['$interpolateMinErr'];
var $interpolateMinErr = window['angular']['$interpolateMinErr'];
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be necessary, since normally the code would be wrapped into an IIFE and passed window.angular as an argument:

(function (window, angular, undefined) { ... })(window, window.angular);

Any idea why it doesn't work ?

@chirayuk chirayuk closed this in 8a45064 Apr 14, 2015
@chirayuk chirayuk deleted the messageFormat_e2e_and_fix branch April 14, 2015 23:28
netman92 pushed a commit to netman92/angular.js that referenced this pull request Aug 8, 2015
Add an E2E test that works against the minified module to test that the
minified build works correctly.

Fix a bug where mustHaveExpression was passed through to submessages
unchanged. Use of the messageFormat syntax automatically means that you
are using an expression.  Therefore, submessages should not be required
to also have messages.

Closes angular#11414
Closes angular#11592
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.

angular-messageFormat select statement bug
4 participants