Top "Angular" questions

Questions about Angular (not to be confused with AngularJS), the web framework from Google.

How to redirect to an external URL in Angular2?

What is the method for redirecting the user to a completely external URL in Angular 2. For example, if I need …

redirect angular angular2-routing
How to reload the current route with the angular 2 router

I am using angular 2 with hashlocation strategy. The component is loaded with that route: "departments/:id/employees" So far fine. …

angular
npm WARN ... requires a peer of ... but none is installed. You must install peer dependencies yourself

I tried to run a project downloaded from github. Unfortunately, during npm install the following warnings were shown. I tried …

javascript angular typescript npm
How to load image (and other assets) in Angular an project?

I'm pretty new to Angular so I'm not sure the best practice to do this. I used angular-cli and ng …

html angular angular-cli
Angular and Typescript: Can't find names - Error: cannot find name

I am using Angular (version 2) with TypeScript (version 1.6) and when I compile the code I get these errors: Error TS2304: …

angular typescript
Local storage in Angular 2

I need to store data in the browser's session and retrieve the data until the session exits. How do you …

javascript angular local-storage session-variables
Manually Set Value for FormBuilder Control

This is driving me nuts, I'm under the gun and can't afford to spend another whole day on this. I …

forms components angular
*ngIf and *ngFor on same element causing error

I'm having a problem with trying to use Angular's *ngFor and *ngIf on the same element. When trying to loop …

angular ngfor angular-ng-if
Angular 2 - Setting selected value on dropdown list

I have run into an issue in pre-selecting values on a dropdown list in Angular 2. I set an array of …

typescript angular angular2-forms
File Upload In Angular?

I know this is very a general question but I am failing to upload a file in Angular 2. I have …

angular file-upload angular2-http