Relative Content

Tag Archive for angulartypescript

Why Angular mat-checkbox not updating via setValue()

I have the following problem: I have component with 2 check-boxes (using mat-checkbox) and this component is part of few of my pages. As an input I pass a object (appData) which contains an entry (key = ‘phases’) – with a string value which is the formControlName of the check box that needs to be marked as checked.

how to apply css without using encapsulation:viewEncapsulation.none?

I’m fairly new to angular but for some reason I can’t find the reason why css isn’t applied on my html unless I use encapsulation: ViewEncapsulation.None in home.component.ts, I was trying the second tutorial of angular, the home one.
this is my home.component.ts