Question
What is the difference between ChangeDetectorRef.markForCheck() and ChangeDetectorRef.detectChanges()? I only found information on SO as to the difference between NgZone.run(), but not between these two functions. For answers with only a reference to the doc, please illustrate some practical scenarios ...
0
2 months 0 Answers 51 views

Question
Here's what I have in fruit.ts export type Fruit = "Orange" | "Apple" | "Banana" Now I'm importing fruit.ts in another typescript file. Here's what I have myString:string = "Banana"; myFruit:Fruit = myString; When I do myFruit = myString; I get ...
0
2 months 0 Answers 44 views

Question
ng-container is mentioned in Angular 2 documentation but there is no explanation how it works and what are use cases. It is particularly mentioned in ngPlural and ngSwitch directives. Does do the the same thing as , or it ...
0
2 months 0 Answers 49 views

Question
This is driving me nuts, I'm under the gun and can't afford to spend another whole day on this. I am trying to manually set a control value ('dept') within the component, and it's just not working - even the ...
0
2 months 0 Answers 40 views

Question
I have a JSON file that looks like following: { "primaryBright": "#2DC6FB", "primaryMain": "#05B4F0", "primaryDarker": "#04A1D7", "primaryDarkest": "#048FBE", "secondaryBright": ...
0
2 months 0 Answers 36 views