[AngularJS] Re: mat-autocomplete displayWith async (how to return from "subscribe")

2019-01-07 Thread Sander Elias
Hi Tolga, > > displayContactFullName(contactId: string) { > if (contactId) { > return this.contactService.getContact(contactId).subscribe(rawContact => { > this.contact = new Contact(rawContact); > let returnValue = this.contact.detail.fullName; > console.log(returnValue); > return returnValue;

Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-07 Thread Suresh Kumar
Thanks for your suggestion. Regards,] Suresh On Mon, Jan 7, 2019 at 7:44 PM Tito wrote: > It is not really angular 7 logging service. I think most accurate > description is angular 7 that makes use logging service api > > Pretty much any version of angular can consume any service. But that said

Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-07 Thread Scott Logsdon
The code I posted was for AngularJS. Note that the title for this thread is misleading. [AngularJS] Angular 7 Logging Service AngularJS and Angular are 2 different animals. On Mon, Jan 7, 2019 at 2:11 PM Scott Logsdon wrote: > Suresh, > > You could use a service similar to the following whic

Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-07 Thread Scott Logsdon
Suresh, You could use a service similar to the following which will report client side stack trace. export default angular > .module('app.services.exceptionOverride', []) > .factory('$exceptionHandler', function($injector) { > return function(exception, cause) { > var errUrl = "your

Re: [AngularJS] Re: Angular 7 Logging Service

2019-01-07 Thread Tito
It is not really angular 7 logging service. I think most accurate description is angular 7 that makes use logging service api Pretty much any version of angular can consume any service. But that said, if you want a logging service it is just a matter of implementing it on you actual rest api se

[AngularJS] Re: cdk-virtual-scroll-viewport usage with angular/flex-layout (row and wrap)

2019-01-07 Thread Martin Kuhn
Hi Sander, o.k. now I get it... Thx for help Regards, Martin Am Montag, 7. Januar 2019 11:38:33 UTC+1 schrieb Sander Elias: > > Hi Martin, > > Oh they do work with the cdk virtual scroll (CVS from here on). However, > your example has multiple items on a single "row". There is no way CVS is >

[AngularJS] Re: cdk-virtual-scroll-viewport usage with angular/flex-layout (row and wrap)

2019-01-07 Thread Sander Elias
Hi Martin, Oh they do work with the cdk virtual scroll (CVS from here on). However, your example has multiple items on a single "row". There is no way CVS is able to determine how much space is needed. You iterate over say 100 items, this results in 20 rows of 5 elements. How do you expect that