diff --git a/src/components/toast/toast.js b/src/components/toast/toast.js index 937fe9e2150..ef5a0e1e601 100644 --- a/src/components/toast/toast.js +++ b/src/components/toast/toast.js @@ -176,7 +176,7 @@ function MdToastProvider($$interimElementProvider) { argOption: 'content', methods: ['content', 'action', 'highlightAction', 'theme'], options: /* @ngInject */ function($mdToast, $mdTheming) { - return { + var opts = { template: [ '', '{{ toast.content }}', @@ -198,6 +198,7 @@ function MdToastProvider($$interimElementProvider) { controllerAs: 'toast', bindToController: true }; + return opts; } }) .addMethod('updateContent', function(newContent) {