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 remove an class in javascript? Solution 1: //remove a css class from an element document.getElementById(“myElementID”).classList.remove(“class_name”); Solution 2: document.getElementsByClassName(“legend”).style.display […]
Updated on Kisan Patel
How to Check if string contains a substring in JavaScript? javascript string contains Solution 1: var string = “foo”, substring […]
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
How to 404 Page not found page setup in Angular Routing? $ ng generate component notfound Next, open the src/app/app-routing.module.ts […]
Updated on Kisan Patel
Problem: How to implement auto scroll of chat messages in Angular? Solution The AfterViewChecked triggers every time the view was […]
Updated on Kisan Patel
Problem: Why powershell does not run Angular commands? “execution of scripts is disabled on this system.” Solution: Step 1: Remove […]
Updated on Kisan Patel
Problem: Global Angular CLI version greater than local version. Solution: You need to update your Angular CLI globally and locally. […]
Updated on Kisan Patel
Problem: Getting an error when running dotnet publish command. “npm run build — –prod” error on Visual Studio 2017 .NET […]
Updated on Kisan Patel