Material design for AngularJS
ng-model-options
timezone w/ MomentJS and datepicker now passes ng-model-options
on to calendar (12562b0), closes #11945 #10598
Thank you to the contributors who helped with the v1.1.24 release:
Splaktar | mmalerba |
md-date-filter
only evaluates first day of month (3d5ff5d), closes #11703
$onDestroy
hook not called (8bb1d98), closes #11847
$validate
has run (11f65e3), closes #10360
'&&'
not a primary expression (#11940) (1bd1a97), closes #10935
md-list-item
padding for clickable items (f7d9027), closes #10384
md-focused
not removed from options on panel close (5a7e967), closes #11927
ng-selected
on md-options
(546bd84), closes #11914
onRemove
doesn't return a Promise
in some cases (e625a9c), closes #10379
md-scroll-shrink
conflicts with md-select
in toolbar (1ed54bb), closes #10413 #9871
inline
to inline-block
to account for md-panel
change (20194ba)(
(bc71d0b), closes #11908
ng-model-options
(2a01746), closes #10431
1.8.0
Thank you to the contributors who helped with the v1.1.23 release:
Splaktar | crisbeto | marosoft | nnmrts | Thaina | chmelevskij |
Thank you to the contributors who helped with the v1.1.22 release:
Splaktar | marosoft | oliversalzburg | andrewseguin | free-easy | nathanael-bice |
psamim | qubiack |
Thank you to the contributors who helped with the v1.1.22-rc.0 release:
Splaktar | marosoft | oliversalzburg | andrewseguin | free-easy | nathanael-bice |
psamim | qubiack |
Version 0.4 incorporates four (4) new components: circular progress, subheader, tooltip and bottom sheet. A new API has also been introduced for $materialDialog
and $materialToast
. Additionally, many small component functionality and performance issues have been resolved.
v0.4 is tested on desktop Chrome, Safari and Firefox, as well as Android 4.4+ and iOS7.
The services $materialDialog
and $materialToast
have changed API(s). See section at bottom for Change Details.
1) $materialDialog:
Change your code from this:
var hideDialog = $materialDialog(options);
hideDialog();
To this:
$materialDialog
.show(options)
.then(
function success(response) {},
function cancelled(reason) {}
);
// Hides the dialog last shown with `show()`
// and resolves the show() promise with `response`
$materialDialog.hide(response);
// Hides the dialog last shown and rejects the `show()`
// promise with the `reason`
$materialDialog.cancel(reason);
Note: If you previously provided a controller
option to $materialDialog
, that controller would be injected with a $hideDialog
function. This feature no longer exists; use $materialDialog.hide()
.
2) $materialToast:
Change your code from this:
var hideToast = $materialToast(options);
hideToast();
To this:
$materialToast
.show(options)
.then(
function success(response) {},
function cancelled(reason) {}
);
// Hides the dialog last shown with `show()`
// and resolves the show() promise with `response`
$materialToast.hide(response);
// Hides the dialog last shown and rejects the `show()`
// promise with the `reason`
$materialToast.cancel(reason);