Rehmaanali

Rehmaanali

Founder Of Geekstrick. Full-Time Software Developer, Expertise in Frontend Development. Conversant with - Angular, React, NodeJS, and MongoDB, MySQL, Postgres,HTML+CSS+JS, CypressIO.

Answer for What is difference between AngularJS and Angular?

geekstrick 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

Angular v12 Is Now Released And Available

geekstrick on May 13, 2021 🔥 4128 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

Flask 2.0 – New Major Version Released

geekstrick on May 12, 2021 🔥 7507 views

Flask 2.0 – New Major Version Released. This release will contain some new features such as some shorthand properties for the route, Support async views, callbacks such as error handlers, and better CLI errors. Flask 2.0 Upgradation and Installation Install from PyPI with pip. For example, for Flask: pip install -U Flask Note: Flask 2.0 […]

news

Schedule A Cron Job In NodeJS Using node-cron

geekstrick on May 8, 2021 🔥 45162 views

This tutorial will see how we can Schedule A Cron Job In NodeJS Using the node-cron module. What is a cron job? A cron job is the event schedular that runs a job as per the given time interval. So it executes a file linked which is linked to that particular job, it runs the […]

post

Answer for How to use AsyncPipe in Angular?

geekstrick 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

geekstrick on October 29, 2020 🔥 102422 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

geekstrick 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

Deno v1.5.0 New Version Released

geekstrick on October 27, 2020 🔥 2118 views

Deno v1.5.0 New Version Released has released today. This release will contain some new features, lots of bug fixes, and many feature stabilizations. Deno v1.5.0 up-gradation If the deno is already installed you can use the basic command to upgrade deno upgrade. incase if you are new, you can install it from the below options. […]

news

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

geekstrick 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

Real-Time Notification With Socket.io, Angular 10 And NodeJS

geekstrick on October 26, 2020 🔥 115759 views

In this tutorial, we will see how can we achieve Real-Time Notification With Socket.io, Angular 10, and NodeJS. With WebSocket, we are allowed for full-duplex communication between a server and clients. WebSocket with socket.io The WebSocket goes beyond the typical HTTP request/response paradigm. With WebSockets, the server and client can send data without initiating a […]

post