Top "Angular8" questions

Questions about Angular version 8, the web framework from Google.

Importing json file in TypeScript

I have a JSON file that looks like following: { "primaryBright": "#2DC6FB", "primaryMain": "#05B4F0", "primaryDarker": "#04A1D7", "primaryDarkest": "#048FBE", "…

json angular typescript angular8
How should I use the new static option for @ViewChild in Angular 8?

How should I configure the new Angular 8 view child? @ViewChild('searchText', {read: ElementRef, static: false}) public searchTextInput: ElementRef; vs @ViewChild(…

angular angular8 viewchild
Repository is not clean. Please commit or stash any changes before updating In Angular 8

Error Repository is not clean. Please commit or stash any changes before updating when i have updated from version 7 to …

angular typescript git angular-cli angular8
How do I support Internet Explorer in an Angular 8 application?

When I generate a project with Angular CLI (8.0.0), I run ng serve, open the application up in Internet Explorer and …

angular angular-cli polyfills angular8
Job name "..getProjectMetadata" does not exist

I updated my angular to v9 and when I try to go back in v8, I receive this error. I …

angular npm angular8 angular9
Angular 8 - Lazy loading modules : Error TS1323: Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'

When I updated Angular from 7 to Angular 8, getting error for lazy loading modules I have tried the options, which are …

javascript angular typescript module angular8
error TS2554: Expected 2 arguments, but got 1 with @ViewChild

I was using ViewChild as follows: @ViewChild("InternalMedia") localStream; @ViewChild("emoji") mEmoji; Which was working fine till angular-7.x as …

angular typescript angular7 viewchild angular8
Call retries were exceeded exception while ng build

I am facing an exception while ng build (generating ES5 bundles for differential loading...) An unhandled exception occured: Call retires …

angular angular-cli angular8 ng-build angular-cli-v8
Angular 8 viewChild returns undefined

I am trying to access the childView instance but it keeps saying the the childView is undefined. Here is my …

javascript angular web angular8
How to solve catch error in Observable in angular 8?

I do error handler code, but I got error in catch. undefined method. This is my serivce.ts code. import { …

angular typescript angular8