These are chat archives for AngularClass/NG6-starter

9th
Jan 2017
Leonel
@leonelag
Jan 09 2017 13:31
Hi all.
I'm using the starter with Angular Material (https://material.angularjs.org/latest/), it's working great so far.
There is a component for dialogs at https://material.angularjs.org/latest/api/directive/mdDialog
When a component asks for the URL an HTML template, how do I provide the template using the ES6 syntax?

Example:

code
$mdDialog.show({
controller: DialogController,
templateUrl: 'tabDialog.tmpl.html',
parent: angular.element(document.body),
targetEvent: ev,
clickOutsideToClose:true
})
code

How to provide the template?