| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
One final release of AngularJS Material in order to update package README files on npm.
Thank you to the contributors who helped with the v1.2.4 release:
| Splaktar | bjarkler | superheri |
This is a patch release that includes bug fixes and enhancements.
Thank you to the contributors who helped with the v1.2.2 release:
| Splaktar | FreedCapybara | shishkinilya | kylekatarnls | natete |
Thank you to the contributors who helped with the v1.2.1 release:
| Splaktar | mmalerba | josephperrott | cgx |
Thank you to the contributors who helped with the v1.1.25 release:
| Splaktar | jelbourn |
If you have
alert = $mdDialog.alert()
.content('This is an example.');It needs to be changed to
alert = $mdDialog.alert()
.textContent('This is an example.');If you have
alert = $mdDialog.alert({
content: 'This is an example.'
});It needs to be changed to
alert = $mdDialog.alert({
textContent: 'This is an example.'
});Thank you to the contributors who helped with the v1.2.0-rc.2 release:
| Splaktar | clshortfuse | wagnermaciel |
If you are using our SCSS files, you can override this back to the default, or another value, in your app's SCSS files:
$button-left-right-padding: rem(0.600); // For 6px horizontal paddingIf you had the recommended configuration for AngularJS 1.6.x:
$compileProvider.preAssignBindingsEnabled(false);
$mdCompilerProvider.respectPreAssignBindingsEnabled(true);Then you should remove both of these calls as they are now the defaults in AngularJS 1.7.0
and AngularJS Material 1.2.0.
If you had the recommended configuration for AngularJS 1.7+:
$mdCompilerProvider.respectPreAssignBindingsEnabled(true);Then you should remove this call as it is now the default in AngularJS Material 1.2.0.
If you were using a backwards-compatible configuration for AngularJS 1.6+:
$mdCompilerProvider.respectPreAssignBindingsEnabled(false);Then you will need to remove this call and may need to refactor your Controllers for
AngularJS Material components like $mdDialog, $mdPanel, $mdToast, or $mdBottomSheet.
For example:
$mdDialog.show({
locals: {
myVar: true
},
controller: MyController,
bindToController: true
}
function MyController() {
// No locals from Angular Material are available. e.g myVar is undefined.
// You would need to move anything accessing locals in here to $onInit().
}
MyController.prototype.$onInit = function() {
// Bindings are now available in the $onInit lifecycle hook.
}If you had:
$mdToast.show($mdToast.simple().content('This no longer works.'));You will need to change to:
$mdToast.show($mdToast.simple().textContent('This works.'));If you had:
$mdToast.updateContent('This no longer works.');You will need to change to:
$mdToast.updateTextContent('This works.');If you had:
$mdToast.show($mdToast.simple({parent: parent, content: 'This no longer works.', theme: 'some-theme', capsule: true}));You will need to change to:
$mdToast.show($mdToast.simple({parent: parent, textContent: 'This works.', theme: 'some-theme', capsule: true}));If you had:
<md-select ng-multiple="expression">...</md-select>You need to change to:
<md-select md-multiple="expression">...</md-select>If you find significant accessibility issues after updating, please report them to us. In 1.2.x, we have a lot more control over our component theming in regards to hues and opaciti...
| Back | FazBrowse Home | New Git URL |