How to combine the results of two observable in angular? Use forkJoin to join multiple results. // Get all posts […]
Updated on Kisan Patel
In Angular, you can use interpolation syntax for data binding. You can configure such setting per Component by specifying interpolation […]
Updated on Kisan Patel
How to stop compile or bind the contents of the current DOM element in Angular? The ngNonBindable tells Angular not […]
Updated on Kisan Patel
How to render recursive or threaded data with ng-template? For Example: app.component.ts import { Component, VERSION } from ‘@angular/core’; @Component({ selector: ‘my-app’, templateUrl: ‘./app.component.html’, styleUrls: [ […]
Updated on Kisan Patel
Learn how to use a dynamic template to compile dynamic Component with Angular? First generate the compiler service to compile […]
Updated on Kisan Patel
How to make “Banana in a box” input-output in your Angular component? some-component.ts @Component({ selector: ‘some-component’ }) export class SomeComponent […]
Updated on Kisan Patel
Here is the example of angular directive for sticky header that disappears when you scroll down. sticky.directive.ts import { Directive, […]
Updated on Kisan Patel
Problem: How to get an active element of your document if it can be in a shadow DOM? Solution: /** […]
Updated on Kisan Patel
Content Projection in #Angular allows you to operate multiple <ng-content> Use <ng-content select=”selector”> to separate content you get (selector can […]
Updated on Kisan Patel
How to access angular app outside localhost? Solution: ng serve –host 0.0.0.0 –disable-host-check
Updated on Kisan Patel