angular6

Angular multiple http post requests give me error: “net::ERR_INSUFFICIENT_RESOURCES”

最后都变了- 提交于 2021-01-01 06:59:04
问题 I am importing an .xlsx file, which has 6000 customers inside and I am trying to loop throught customers and make an http post request foreach customer, but I get this error: net::ERR_INSUFFICIENT_RESOURCES. How can I insert these customers? They need to be passed throught my backend in order to get encrypted. this.customers.forEach(customer => { this.customerService .createCustomer(customer) .pipe(take(1)) .subscribe(() => {}); }); Only 2000 customers are imported. Any way to fix it? Thanks.

ngx perfect scrollbar update function undefined?

不问归期 提交于 2020-12-30 03:00:54
问题 This is the first time i'm trying to use perfect scroll so i might have missed something, but looking at the documentation it shows some functions that can be accessed using the directiveRef as follows https://www.npmjs.com/package/ngx-perfect-scrollbar following this i tried to use the update because i noticed the container wouldn't update with new items unless i resized the window so i checked the object only to find that the update function is undefined and missing from the directiveRef

ngx perfect scrollbar update function undefined?

孤街醉人 提交于 2020-12-30 02:55:02
问题 This is the first time i'm trying to use perfect scroll so i might have missed something, but looking at the documentation it shows some functions that can be accessed using the directiveRef as follows https://www.npmjs.com/package/ngx-perfect-scrollbar following this i tried to use the update because i noticed the container wouldn't update with new items unless i resized the window so i checked the object only to find that the update function is undefined and missing from the directiveRef

How to refresh mat-calendar after changing the background of highlighted dates

北城以北 提交于 2020-12-06 05:17:45
问题 I have a mat-calendar control which is open always. On initial load, I am highlighting an array of dates which was able to do following this: Highlighting certain dates in mat-calendar. Now I have to highlight today's day (or selected date) on a button click. The highlighting works only when I change to different month, and then come back to the current month's view. Is there a way to refresh the mat-calendar dynamically? Please advise. https://am-all-imports-zwnjbd.stackblitz.io 回答1: You can

How to refresh mat-calendar after changing the background of highlighted dates

痞子三分冷 提交于 2020-12-06 05:17:12
问题 I have a mat-calendar control which is open always. On initial load, I am highlighting an array of dates which was able to do following this: Highlighting certain dates in mat-calendar. Now I have to highlight today's day (or selected date) on a button click. The highlighting works only when I change to different month, and then come back to the current month's view. Is there a way to refresh the mat-calendar dynamically? Please advise. https://am-all-imports-zwnjbd.stackblitz.io 回答1: You can

doc.fromHTML is not a function with angular 6

南楼画角 提交于 2020-11-29 08:12:15
问题 I wanna export a template html to pdf and I'm trying use jsPDF lib with angular, but o got this error doc.fromHTML is not a function. import { Component, ViewChild, ElementRef } from '@angular/core'; import * as jsPDF from 'jspdf'; // declare var jsPDF: any; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'exports-pdf'; @ViewChild('exports') exports: ElementRef; public print(): void { const doc =

doc.fromHTML is not a function with angular 6

安稳与你 提交于 2020-11-29 08:11:05
问题 I wanna export a template html to pdf and I'm trying use jsPDF lib with angular, but o got this error doc.fromHTML is not a function. import { Component, ViewChild, ElementRef } from '@angular/core'; import * as jsPDF from 'jspdf'; // declare var jsPDF: any; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'exports-pdf'; @ViewChild('exports') exports: ElementRef; public print(): void { const doc =