These are chat archives for angular/material

Sep 2016
Valsamakis Yannis
Sep 19 2016 09:05
I am following the tutorial Tour of heroes from the official angular 2 page and the last part of http includes code such as this.get(this.heroesUrl).toPromise().then(response => response.json().data as Hero[]).catch(this.handleError); However, method toPromise() do not work for me, I have added the import 'rxjs/add/operator/toPromise'; . Is there a problem with tutorial or something else happens?
Jesús López Morales
Sep 19 2016 09:10
Hi, i've a problem. I'm using autocomplete with float text, but when select the value, the color text dissapear :S
Captura de pantalla 2016-09-19 a las 11.11.04.png
Captura de pantalla 2016-09-19 a las 11.11.10.png
I've upload 2 pictures: 1 when the focus is inside and the second when the focus is out.
I've inspect this i see this:
Captura de pantalla 2016-09-19 a las 11.12.36.png
md-input-container:not(.md-input-has-value) <<----- not has value??
Valsamakis Yannis
Sep 19 2016 09:54
@jvalsam no problem with tutorial, I completed tutorial which is very helpful. However the visual studio intelligence does not work for import 'rxjs/add/operator/toPromise';
Sep 19 2016 13:17
md-button-toggle-group doesn't emit a change event when multiple. It does if multiple is false.
Torgeir Helgevold
Sep 19 2016 18:36
When creating a control library in Angular 2.0 like angular/material. Do you seen any downsides to releasing the TS source as part of the npm package? Rather than just a JS dist build?
Seems like you get more flexibility that way. The consumer can decided how they want to integrate and add AOT compilation, inline templates etc