[AngularJS] Re: Testing HTTP to see if it picked out the right JSON from local filesystem

2019-04-13 Thread Sander Elias
Hi Andom, I would start with replacing it with something like: result$ = concat( this.http.get('/assets/a.json').pipe(catchError(e => EMPTY)), this.http.get('/assets/b.json').pipe(catchError(e => EMPTY)), this.http.get('/assets/c.json').pipe(catchError(e => EMPTY)), of('No result found')

[AngularJS] Passing another FormControl to the Sync Validator in Angular6 Reactive Form

2019-04-13 Thread Pradip Mukhopadhyay
Experts, I have a Reactive Form FormGroup where I have two FormControls: my_form = new FormGroup({ ctrl1: new FormControl('foo', [Validator.validatorCtrl1]), ctrl2: new FormControl('bar', [Valiator.validateCtrl2]), }, { validateOn: onSubmit // validate when }, Now in my

[AngularJS] Passing different validation styles for different formControls in a formGroup

2019-04-13 Thread Pradip Mukhopadhyay
Experts, In Reactive Form in Angular6, is it possible to pass different validation style (when to validate) for different formControls inside the same FormGroup? E.g. I want something like this: myform = new FormGroup({ ctrl1: new FormControl('', [validators]); ctrl2: new

[AngularJS] Ngx pagination

2019-04-13 Thread Dev C
Hello I am using ngx pagination and it works well but it shows pagination like PREV 1,220 NEXT I WOULD LIKE TO SHOW ALWAYS THREE CURRENT PAGES LIKE PRev 1,2,3 next and if we click next it should show 2,3,4 and so on at a time three pages only. Thaks Devsur -- Sent from my mi note 4