Top "Angular" questions

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

Angular 4/5/6 Global Variables

I really struggle with creating global variables in my Angular 2 application. I already googled and read many posts on StackOverflow …

angular typescript
How to add conditional attribute in Angular 2?

How can I conditionally add an element attribute e.g. the checked of a checkbox? Previous versions of Angular had …

javascript angular
document.getElementById replacement in angular4 / typescript?

So, im working with angular4 in my practice work and this is new for me. Luckyly, in order to get …

angular typescript
Typescript Type 'string' is not assignable to type

Here's what I have in fruit.ts export type Fruit = "Orange" | "Apple" | "Banana" Now I'm importing fruit.ts in another …

javascript typescript angular
Disable Input fields in reactive form

I already tried to follow the example of other answers from here and I did not succeed! I created a …

angular
How to force a component's re-rendering in Angular 2?

How to force a component's re-rendering in Angular 2? For debug purposes working with Redux i'd like to force a component …

angular angular2-changedetection
How to pass a parameter to routerLink that is somewhere inside the URL?

I know I can pass a parameter to routerLink for routes such as /user/:id by writing [routerLink]="['/user', …

angular angular2-routing angular2-router3
HTML5 event handling(onfocus and onfocusout) using angular 2

I have a date field and I want to remove the place holder by default. I am using javascript onfocus …

angular
Creating and returning Observable from Angular 2 Service

This is more of a "best practices" question. There are three players: a Component, a Service and a Model. The …

angular observable
Installing a specific version of angular with angular cli

I searched through google and angular cli doc but couldn't find any way to install a specific version of angular …

angular angular-cli