Search results for "angular"


Create Library In Angular 12 – Search Highlighter

on September 20, 2021 🔥 507 views

In this tutorial, we will see how to Create a Library In Angular 12. Search Highlighter is what we are going to create throughout this article. If you are not aware of what is an angular library – Basically library is created to use some piece of code or you can say functionality to various […]

post

Easily Translate Angular 12 App Using ngx-translate

on May 24, 2021 🔥 31109 views

Code and Demo This tutorial will see how we can Easily Translate the Angular 12 App Using the library Angular 12 with ngx-translate The internationalization (i18n) library for Angular ngx-translate: It is an internationalization library for Angular. It will let you define translations for your content in different languages and you can switch languages easily. […]

post

Answer for What is difference between AngularJS and Angular?

on May 18, 2021 🔥 0 views

Yes, Angular JS is a JavaScript framework it was used to develop a web application.     Angular JSThis framework has a model-view-controller (MVC) that acts as the central component as it manages data, logic, rules, and expresses how the applications behave.    AngularAngular uses components that are directives with templates. There are two kinds of […]

discussion

What is difference between AngularJS and Angular?

on May 14, 2021 🔥 0 views

Can you please tell me about AngularJS vs Angular. I have know that AngularJS is JavaScript framework but it’s confused for that use only mobile app or web app. please give clarification about both differences.

discussion

Angular v12 Is Now Released And Available

on May 13, 2021 🔥 3917 views

Angular team has announced that the Angular v12 Is Now Released And Available. Below mention are the changes you will find in a newer version of angular. Angular v12: Ivy Everywhere Angular v12 has finally deprecated the View Engine. The community has been working over recent releases towards the goal of converging the Angular ecosystem […]

news

Answer for How to use AsyncPipe in Angular?

on December 10, 2020 🔥 0 views

An async pipe is a way to display the value of an Observable in an Angular template. If the Observable emits a new value, the value displayed in the template will automatically update. And when you destroy the component, the Observable will automatically be unsubscribed for you. Maybe this will help you: https://angular-university.io/lesson/angular-beginners-async-pipe

discussion

Angular 10 Secure Routes Using AuthGuard Based On User Role

on October 29, 2020 🔥 81778 views

In this tutorial, we will see how Angular 10 Secure Routes Using AuthGuard Based On User Roles. Securing a route based on the token and AuthInterceptor for API is ok but also we can secure the routes based on what roles does the user has. You may have seen much application that shows an error […]

post

Answer for How to not trigger ngModelChange event on setValue in angular 10 reactive form

on October 28, 2020 🔥 0 views

Instade of NgModelChange you can use the valueChange then you can handle whether to emit event or not on value change by passing emitEvent in setValue() if (save) { this.workOrderForm.get(‘productID’).setValue(newProduct.ID); // some more functionality } else { this.workOrderForm.get(‘productID’).setValue(oldProductID, {emitEvent: false}); } and in HTML <mat-select formControlName=’productID’ (valueChange)=’setNewProduct($event)’> … </mat-select>

discussion

How to not trigger ngModelChange event on setValue in angular 10 reactive form

on October 28, 2020 🔥 0 views

How can we avoid the event to be trigger on ngModelChange event while setValue() is called? My condition is like on the value change from dropdown selection I am showing confirmation popup. – on confirm, I want to set the new value which was changed, – on cancel, I want to reset the old value […]

discussion

Answer for How can we cache the HTTP requests in Angular 10?

on October 27, 2020 🔥 0 views

Yes it was possible then and now also in the latest version using rxjs/operators … private records$: Observables<any>; … public getPart(id: any): Observable<any> { if(!this.records$) { this.records$ = this.http .get(`${this.baseUrl}${id}`) .pipe(map((res: any) => res.data), shareReplay(1)); } return this.records$ // reply the last result for all new subscribers } Just pipe the stream through shareReplay operator. […]

discussion
1 2 3 10