Questions tagged angular

Explore the latest questions and answers asked by our top developers.

Automatic crash on Angular universal project on server

In the Angular universal project. After a while on the server, the site automatically crashes and the server needs to be restarted. These errors are in the log. This has happened twice in the last month. There are too many "Converting circular structure to JSON" errors in the log file. (node:24572) [DEP0005] DeprecationWarning: Buffer() is […]

How to write javascript conditional operator statement ‘?’ without using else ‘:’ [duplicate]

So I’m using typescript in Angular and I have this code in ngOnInit() : this.authService.isAuthenticate() ? this.router.navigate([‘/waiting-list’]) but I’m getting this error: [ ‘:’ expected.ts(1005) ]. I wanna use the new way to make if else statement (with ‘?’ operator). so maybe someone knows how to make it without else ‘:’ statement. Thank you. Source: […]

By red1dev
Published
Categorized as angular, ecmascript-6, javascript, typescript Tagged , , ,

Open a .sqlite SQLite database file after file upload into a Node.js/Angular application

I’m struggling a bit with opening and reading a SQLite file inside a Node.js, or better to say Angular (12) application. The Angular application offers file uploads, beside others uploading a .sqlite SQLite database file. After upload, I have the file in form of the common Web APIs File interface. Npm packages like sqlite3 or […]

Open a .sqlite SQLite database file after file upload into a Node.js/Angular application

I’m struggling a bit with opening and reading a SQLite file inside a Node.js, or better to say Angular (12) application. The Angular application offers file uploads, beside others uploading a .sqlite SQLite database file. After upload, I have the file in form of the common Web APIs File interface. Npm packages like sqlite3 or […]

Using HttpClient to make get requests

I have written the following code to get the dummy data here: export class AppComponent { jsonPosts: any = []; constructor(private httpClient: HttpClient) { } OnInit() { this.getJsonPosts(); } getJsonPosts(): any { return this.httpClient.get("https://jsonplaceholder.typicode.com/posts") .subscribe(response => { console.log(response); this.jsonPosts = response; }); } I have also written the following code to display them in my […]

By CatarinaRuna
Published
Categorized as angular, html, http, json, typescript Tagged , , , ,

How to call node.js libraries from server.js?

I am new to node.js. I have an application angular front end and node.js server. And there is a js library that I am trying to get data. What I am trying to do is user will press a button and pass data to server. Server will pass data to a node.js library and library […]

By none none
Published
Categorized as angular, javascript, node.js Tagged , ,

Only one filed form validation is working in angular js

I’m creating a login and registration page using MEAN stack. My registration form validation is not working. Only the first one is working; the rest of the fields are not showing anything. In addition to that, when the form is submitted, data is passed to the database, but it does not show the success message […]

Kendo Angular upload file with other JSON parameters

I am using KendoUI in our Angular application and we need to upload a file to backend with other details like username,description,uploadtypeid as shown in below figure I have checked with available kendo upload feature available , but it accepts only file to upload .How can I make changes to below stackblitz so I can […]

How to bind the data with seperate headers using reactive forms in Angular8

Hi i am using Angular8 reactive forms. In this, i need to bind data with respect to the array name given in the output. Initially i was getting all response as one array of objects but now, it has got differenciated with headers, so i need to bind data accordingly. i have attached demo with […]

By Bhrungarajni
Published
Categorized as angular, angular-reactive-forms Tagged ,

Angular 12: ngModel variable not updating after async get result

I know this issue is very common, but I have done some research already and didn’t find any solution for my case, I have tried some stuff like ngZone and setTimeout but won’t work. What I have is a component using ngModel that is updated via a get done by a service using a utility […]

1 5,192

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq