Founder Of Geekstrick. Full-Time Software Developer, Expertise in Frontend Development. Conversant with - Angular, React, NodeJS, and MongoDB, MySQL, Postgres,HTML+CSS+JS, CypressIO.
I have multiple methods that contain individual get method but in component How to Call Multiple Rest API and Subscribe in component i.e. calling multiple methods in one subscribe. /** * Get current User from the server. * * @returns {json} current user. */ public getCurrentUser(): any { return this.http.get(this.baseUrl) .pipe(map((res: any) => res.data)); } […]
Pure Pipe A pure pipe is only called when Angular detects a change in the value or the parameters passed to a pipe @Pipe({ name: ‘filterPipe’, pure: true })export class FilterPipe {} Impure Pipe An impure pipe is called for every change detection cycle no matter whether the value or parameter(s) changes. An impure pipe […]
In this tutorial, we will see how can we write a Better Typescript Source Code Documentation For Angular 10 Projects. Documentation can help the developers to understand the logic and functionality of methods, class, or arguments. You can document your project with an automated documentation generator in which we don’t have to add comments for […]
The Glitch and slowness is due to when you route to some model then only it loads its module assets and code, so you can preload your module when the app is initiated using the preloadingStrategyin the router config. const routes: Routes = [ { path: ‘customers’, loadChildren: () => import(‘./customers/customers.module’).then(m => m.CustomersModule) }, { […]
In this tutorial, we see the hidden gem that is Detecting device orientation in Web Using Javascript. you need to make sure your browser supports it. You can easily check caniuse.com. Code & Demo Works Better in Mobile Detecting device orientation It allows a device to detect its physical orientation with respect to gravity. If […]
Google Launches Tables Area 120 Beta Version In The USA. Tables is a product from Area 120, by Google it manages your pipeline, leads, and client relationships with a tool built for your unique sales process. currently, it is launched only in the USA. Tables Area 120 Beta Tables can help the teams to easily […]
In this tutorial, we will see how can we Build And Host Angular 10 Application. Hosting an angular application can be done with different configs. Normal Way To Host Angular 10 Application After the development, we can create a compiled version of our angular application for a prod version using the Angular CLI command. bash […]
In this tutorial, we will see ho can we create a Create Async Validators in Angular 10 Reactive Forms that validates the form data based on the HTTP API response. We will be creating the custom validator that connects with service and component form and validates the user selection. Example Usecase Suppose the address form […]
You can use this approach via passing the data as an internal object, filed to be updated, and value of the field. nestedObjectGetUpdate(data, field, value) { let schema = data; // a moving reference to internal objects within obj const pList = field.split(‘.’); const len = pList.length; for (var i = 0; i < len […]
The Group of PostgreSQL developers has announced the release of version 13, the latest version of the worldβs most advanced open source database. It comes with improvements to its indexing and lookup system that benefit large databases, Includes space-saving, faster response time for queries, better query planning when enhanced statistic, and more. PostgreSQL v13 PostgreSQL […]