Most viewed questions in Angular

0 votes
3 answers

How to load external scripts dynamically in Angular?

Hello kartik, You can use following technique to ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
70,855 views
0 votes
2 answers
0 votes
2 answers

How to detect a route change in Angular?

Hii Kartik For Angular 7 someone should write like: this.router.events.subscribe((event: Event) ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
28,862 views
0 votes
1 answer

How to make FileReader work with Angular?

Hello @kartik, First you have to specify the ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
26,254 views
0 votes
1 answer

How do you import a javascript package from a cdn/script tag in React?

Hello, Go to the index.html file and import ...READ MORE

Jun 4, 2020 in Angular by Niroj
• 82,880 points
24,692 views
0 votes
2 answers

Error: EACCES: permission denied, access '/usr/local/lib/node_modules' react

Hello @kartik, Change your file permissions like this First ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
22,524 views
0 votes
1 answer

How to check empty object in angular template using *ngIf?

Hello @kartik, Use this: <div class="comeBack_up" *ngIf="(previous_info | json) ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
17,610 views
0 votes
1 answer

How to get current value of RxJS Subject or Observable?

Hello @kartik, A Subject or Observable doesn't have a current value. When ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
16,845 views
0 votes
1 answer

Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'

Hii kartik, Removing the node_modules and the package-lock.json ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
15,770 views
+2 votes
1 answer

An unhandled exception occurred: Job name “..getProjectMetadata” does not exist?

Hello @kartik, I had this error after npm audit found ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
15,261 views
0 votes
1 answer

How to Stop observable.timer in Angular?

Hello @kartik, There're are basically two ways: call unsubscribe() on the ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
13,995 views
0 votes
1 answer

How do I include a JavaScript script file in Angular and call a function from that script?

Hello @kartik, Refer the scripts inside the angular-cli.json (angular.json when using ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
13,844 views
0 votes
1 answer

How can we reload a page after requesting the same get parameter using AngularJS?

hey kartik, The reason for this is that ...READ MORE

Feb 10, 2020 in Angular by Niroj
• 82,880 points
12,435 views
0 votes
1 answer

How to pass a string parameter from angular UI to node.js backend?

Hello Kartik, There are three ways to get ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
10,494 views
0 votes
1 answer

How to update nested state properties in React

Hello @kartik, In order to setState for a nested object ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
9,002 views
0 votes
1 answer

Error:getting “ENOTEMPTY: directory not empty, rmdir …” error on installing express in angular CLI app.

Hello Kartik, Use this command : npm install ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
8,771 views
0 votes
1 answer

How to increase request timeout in IIS?

Hello @kartik, To Increase request time out add ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
8,667 views
0 votes
1 answer

How to synchronise Angular http get?

Hello @kartik,  the only way around this: wrap ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
8,607 views
0 votes
1 answer

How do I conditionally add attributes to React components?

Hello @kartik, For certain attributes, React is intelligent ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
8,517 views
0 votes
0 answers

nodemon app crashed - waiting for file changes before starting

The node is crashing when I access ...READ MORE

May 13, 2022 in Angular by Kichu
• 19,050 points
8,484 views
0 votes
1 answer

How to allow access outside localhost?

Hello kartik, You can use the following command ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
8,346 views
0 votes
1 answer

How to do a Jquery Callback after form submit?

Hello @kartik, Just do like this - $("#myform").bind('ajax:complete', function() ...READ MORE

Jul 24, 2020 in Angular by Niroj
• 82,880 points
7,947 views
0 votes
1 answer

How to add “active” class to Html.ActionLink in ASP.NET MVC?

Hello @kartik, The way you handle your UI ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
7,646 views
0 votes
2 answers

How to access session variables from any class in ASP.NET?

Accessing session Variable in a class file ...READ MORE

Sep 3, 2020 in Angular by Okugbe
• 280 points
7,277 views
0 votes
1 answer

How to disable postback on an asp Button?

Hello @kartik, Use: YourButton.Attributes.Add("onclick", "return false"); or <asp:button runat="server" ... OnClientClick="return ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
6,312 views
0 votes
1 answer

Error while installing angular/cli using npm

Hello @kartik, First of all, all the things ...READ MORE

Apr 22, 2020 in Angular by Niroj
• 82,880 points
5,660 views
0 votes
1 answer

How to set session timeout in web.config?

Hello @kartik, If you want to set the ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
5,644 views
0 votes
1 answer

How to create a URL in the controller .NET MVC?

Hello @kartik, If you just want to get ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
5,602 views
0 votes
1 answer

How to specify a port to run a create-react-app based project?

Hello @kartik, You could use cross-env to set the port, ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
5,514 views
0 votes
1 answer

Error:setState doesn't update the state immediately

Hello @kartik, The method setState() takes a callback. And ...READ MORE

Jun 4, 2020 in Angular by Niroj
• 82,880 points
4,958 views
0 votes
1 answer

Error: allowDefinition='MachineToApplication' beyond application level

Hello @kartik, This error occurs when you attempt ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
4,900 views
0 votes
1 answer

How to return raw string with ApiController?

Hello @kartik, You could have your Web Api ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
4,288 views
0 votes
1 answer

How can we display message when we click some element(button) that server is loading?

hey kartik,  As $route is used for deep-linking URLs ...READ MORE

Feb 11, 2020 in Angular by Niroj
• 82,880 points
4,184 views
0 votes
1 answer

How do I retrieve the Width and Height from this event object?

Hello @kartik, Use: <div (window:resize)="onResize($event)" onResize(event) { event.target.innerWidth; } or using ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
4,181 views
0 votes
1 answer

How can we redirect to another page from existing page on clicking alert?

hii, It is really simple to redirect from ...READ MORE

Feb 6, 2020 in Angular by Niroj
• 82,880 points
4,023 views
0 votes
1 answer

TypeScript-'s Angular Framework Error - "There is no directive with exportAs set to ngForm"

Try this:  import { FormsModule } ...READ MORE

May 23, 2022 in Angular by narikkadan
• 63,720 points
3,678 views
0 votes
1 answer

How can we redirect to an existing route using ngRoute?

Routing is just another way of fixing some content ...READ MORE

Feb 6, 2020 in Angular by Niroj
• 82,880 points
3,486 views
0 votes
1 answer

How to pass props to {this.props.children}?

Hello @kartik,  Try using this: <div> ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
3,365 views
0 votes
1 answer

Error:Cannot read property 'remove' of undefined at BrowserDomAdapter.removeClass

Hello @kartik, There are several ways to add ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
3,322 views
0 votes
0 answers

mat-form-field must contain a MatFormFieldControl

I want to build a form-field-Components. I ...READ MORE

May 13, 2022 in Angular by Kichu
• 19,050 points
3,215 views
0 votes
1 answer

Error: Cannot read property 'setState' of undefined

Hello @kartik, This is due to this.delta not being bound ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
3,196 views
0 votes
1 answer

Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object

Hello @kartik, You need export default or require(path).default var ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
3,135 views
0 votes
1 answer

How do I detect a click outside an element?

Hello @kartik, Attach a click event to the ...READ MORE

Sep 10, 2020 in Angular by Niroj
• 82,880 points
2,880 views
0 votes
1 answer

How do you bind an Enum to a DropDownList control in ASP.NET?

Hello @kartik, I probably wouldn't bind the data as it's ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
2,831 views
0 votes
1 answer

Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions?

Like JavaScript,  Angular expressions are code snippets ...READ MORE

Feb 10, 2020 in Angular by Niroj
• 82,880 points
2,806 views
0 votes
1 answer

Error:XMLHttpRequest GET not working in React.js

Hello @kartik, You should populate data with AJAX ...READ MORE

Jun 4, 2020 in Angular by Niroj
• 82,880 points
2,797 views
0 votes
1 answer

What is $routeParams used for in Angularjs?

Angularjs routeParams is a service that allows ...READ MORE

Feb 7, 2020 in Angular by Niroj
• 82,880 points
2,752 views
0 votes
1 answer

What is $stateProvider in AngularJs?

Routing is just another way of fixing some content ...READ MORE

Feb 11, 2020 in Angular by Niroj
• 82,880 points
2,502 views
0 votes
1 answer

What is $parse in Angularjs

Before we jump into the topic you ...READ MORE

Feb 4, 2020 in Angular by Niroj
• 82,880 points
2,400 views
0 votes
1 answer

Error:Parse Error: Adjacent JSX elements must be wrapped in an enclosing tag

Hello @kartik, It is happening because any where ...READ MORE

Jun 4, 2020 in Angular by Niroj
• 82,880 points
2,287 views