-
Notifications
You must be signed in to change notification settings - Fork 3.4k
compiler: improve support for AngularJS 1.7.2+ #11319
Comments
@gkalpak provided this guidance:
This appears to just be one step of many towards fixing this. Making this change alone still results in If I make some changes to
|
PR #11320 is open and appears to fix all of the tests for AngularJS |
To be clear, by "refactored" I meant making it so that it doesn't rely on the removed AngularJS feature (3rd argument) in addition to not passing the argument 😁 |
remove use of private and undocumented arguments to $controller update how preAssignBindingsEnabled is handled for AngularJS 1.7+ Fixes #11319
remove use of private and undocumented arguments to $controller update how preAssignBindingsEnabled is handled for AngularJS 1.7+ update documentation Fixes #11319
remove use of private and undocumented arguments to $controller update how preAssignBindingsEnabled is handled for AngularJS 1.7+ update documentation Fixes #11319
It looks like the removal of Does this resolve the compatibility problem, at least for AngularJS 1.7.2? Are you still planning to move forward with attempting to eliminate use of |
@sgilroy yes it was reverted in 1.7.2. Yes it solves the compatibility problem with 1.7.2 and AngularJS Material. We're re-evaluating our approach due to that change. We do still plan to eliminate |
remove use of private and undocumented arguments to $controller update how preAssignBindingsEnabled is handled for AngularJS 1.7+ update documentation Fixes #11319
remove one of two uses of private/undocumented arguments to $controller mark setting `respectPreAssignBindingsEnabled(false)` as deprecated update documentation add AngularJS 1.5.x back to TravisCI update AngularJS devDependencies to `^1.7.2` Closes #11319
remove one of two uses of private/undocumented arguments to $controller mark setting `respectPreAssignBindingsEnabled(false)` as deprecated update documentation add AngularJS 1.5.x back to TravisCI update AngularJS devDependencies to `^1.7.2` Closes #11319
remove one of two uses of private/undocumented arguments to $controller mark setting `respectPreAssignBindingsEnabled(false)` as deprecated update documentation add AngularJS 1.5.x back to TravisCI update AngularJS devDependencies to `^1.7.2` Closes #11319
remove one of two uses of private/undocumented arguments to $controller mark setting `respectPreAssignBindingsEnabled(false)` as deprecated update documentation add AngularJS 1.5.x back to TravisCI update AngularJS devDependencies to `^1.7.2` Closes #11319
remove one of two uses of private/undocumented arguments to $controller mark setting `respectPreAssignBindingsEnabled(false)` as deprecated update documentation add AngularJS 1.5.x back to TravisCI update AngularJS devDependencies to `^1.7.2` Closes #11319
Bug, enhancement request, or proposal:
Proposal
CodePen and steps to reproduce the issue:
Demo which demonstrates the issue:
https://travis-ci.org/angular/material/jobs/388688438 is just one of many CI unit test jobs which have failed for the AngularJS
SNAPSHOT
view since angular/angular.js#16580 was merged.What is the expected behavior?
AngularJS Material unit tests in
master
pass against the AngularJSSNAPSHOT
version.What is the current behavior?
54 failing tests can be seen in all recent jobs like https://travis-ci.org/angular/material/jobs/388688438.
What is the use-case or motivation for changing an existing behavior?
We were fairly well prepared for the changes in angular/angular.js#15782 that went into AngularJS 1.7.0, but the follow on breaking changes in angular/angular.js#16580 that are part of the unreleased AngularJS 1.7.1 remove some private and undocumented APIs that AngularJS Material depended upon.
One example is the use of the third and fourth arguments in
$controller
which were added to fix an issue with ES6 that we resolved in 1.1.5. You can see some of the comments that explain this here:material/src/core/services/compiler/compiler.js
Lines 452 to 477 in 0046467
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
We cover some of the details of
$compileProvider.preAssignBindingsEnabled()
in our updated docs for 1.1.9 here: https://material.angularjs.org/latest/api/service/$mdCompilerProvider#mdcompilerprovider-respectpreassignbindingsenabled-respectedThe text was updated successfully, but these errors were encountered: