How to connect $ mdToast service with Angular Material in TypeScript?

1 answer 1

The solution is: take d.ts from here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/angular-material

and in the application itself wrote:

import 'angular-material'; import 'angular-animate'; import 'angular-aria'; 

And depending on the module added 'ngMaterial'

 export const appModule: ng.IModule = angular.module('ts', [ 'ngMaterial' ])