How to connect $ mdToast service with Angular Material in TypeScript?
- npm , or what angular is meant? - Grundy
- this one: material.angularjs.org/latest/api/service/$mdToast - SIARHEI PAKHUTA
|
1 answer
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' ])
|