Latest questions in Angular

0 votes
1 answer

What is single-page application in angular?

In Angular, a single-page application is a ...READ MORE

Feb 19 in Angular by Digna
167 views
0 votes
1 answer

What is Angular framework?

Angular is an open-source web application framework ...READ MORE

Jan 12 in Angular by Vaishali
186 views
0 votes
1 answer

What is Angular Material?

Angular Material is a UI component library ...READ MORE

Dec 29, 2023 in Angular by Irene
133 views
0 votes
1 answer

What is angular cli?

Angular CLI  is a command-line tool for ...READ MORE

Dec 15, 2023 in Angular by Sonu
189 views
0 votes
0 answers

What is the difference between Promises and Observables?

May 23, 2022 in Angular by Kichu
• 19,050 points
309 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,240 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,940 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,327 views
0 votes
1 answer

How to call a node function from Angular ?

Hello, For your query you can refer this:https://www.codegrepper.com/code-examples/javascript/how+to+call+a+function+when+a+button+is+clicked+in+javascript Hope ...READ MORE

Nov 9, 2020 in Angular by Niroj
• 82,880 points
1,731 views
0 votes
0 answers

How to call a node file from Angular function? [closed]

I have a button in my webpage ...READ MORE

Nov 9, 2020 in Angular by Viswa
• 140 points

closed Nov 9, 2020 by Gitika 721 views
0 votes
1 answer

How can I get current route

Hello @Ava, Try this this.router.events.filter((event: any) => event instanceof ...READ MORE

Sep 14, 2020 in Angular by Niroj
• 82,880 points
381 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,801 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,601 views
0 votes
1 answer

What does this construct look like in Typescript for Angular ?

Hello @kartik, try this. selectChildren(data, $event) { ...READ MORE

Sep 8, 2020 in Angular by Niroj
• 82,880 points
453 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,394 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,638 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,989 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,627 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,242 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,020 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,173 views
0 votes
1 answer

How to know tools and bundlers after create a new workspace or a project in angular?

Hello @sajal, When you create projects and workspaces ...READ MORE

Aug 6, 2020 in Angular by Niroj
• 82,880 points
595 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,791 views
0 votes
1 answer

ow can I use Server.MapPath() from global.asax?

Hello @kartik, You could try System.Web.Hosting.HostingEnvironment.MapPath(). No HttpContext required. Hope ...READ MORE

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

How can I strip HTML tags from a string in ASP.NET?

Hello @Kartik, If it is just stripping all HTML tags ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
1,516 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,026 views
0 votes
1 answer

How to allow download of .json file with ASP.NET?

Hello @kartik, If you want to manually add ...READ MORE

Jul 23, 2020 in Angular by Niroj
• 82,880 points
1,887 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,712 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,365 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,367 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,164 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,387 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,960 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,436 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,714 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,351 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,125 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,091 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,927 views
0 votes
1 answer

How to get parameter value from query string?

Hello @kartik, Using component <Route path="/users/:id" component={UserPage}/> this.props.match.params.id The component is ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
1,440 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,042 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,345 views
0 votes
1 answer

How to set focus on an input field after rendering?

Hello @kartik, You should do it in componentDidMount and refs callback instead. ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
1,688 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,295 views
0 votes
1 answer

How to loop inside React JSX?

Hello @kartik, You're just calling JavaScript functions. You ...READ MORE

Jul 22, 2020 in Angular by Niroj
• 82,880 points
1,410 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,685 views
0 votes
2 answers
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,409 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,888 views
0 votes
1 answer

Error:Unable to access React instance (this) inside event handler

Hello @kartik, You can use an arrow function together with ...READ MORE

Jun 4, 2020 in Angular by Niroj
• 82,880 points
1,784 views