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,246 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,676 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
25,579 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,404 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,107 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
16,974 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,225 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,372 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,069 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,628 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,620 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,276 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,322 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
8,925 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,547 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,388 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,376 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,342 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,324 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,131 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,789 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,358 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
6,947 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,155 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,479 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,429 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,353 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,345 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,884 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,712 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,064 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,017 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,014 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
3,878 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,302 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,294 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,620 points
3,233 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,166 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,088 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,041 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
2,935 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,797 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,704 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,700 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,682 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,650 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,365 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,291 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,224 views