update content to textContent for 1.0.0-rc5

md-toast now uses textContent instead of content - content is deprecated
This commit is contained in:
book010
2015-11-26 12:22:02 +08:00
parent 879969aa28
commit abacf3f78a

View File

@@ -96,5 +96,5 @@ myApp.controller('SidenavController', ($scope: ng.IScope, $mdSidenav: ng.materia
});
myApp.controller('ToastController', ($scope: ng.IScope, $mdToast: ng.material.IToastService) => {
$scope['openToast'] = () => $mdToast.show($mdToast.simple().content('Hello!'));
});
$scope['openToast'] = () => $mdToast.show($mdToast.simple().textContent('Hello!'));
});