Questions tagged [angular7]
Questions about Angular version 7, the web framework from Google. Use this tag for Angular questions which are specific to only version 7. Use tag Angular for any Angular questions which are not specific to an individual version.
angular7
5,212
questions
1
vote
1
answer
10k
views
Default select value for dropdown is not straight forward in Angular 7
I've been working with Angular 7 recently, and finding some strange stuff happening when trying to display a dropdown list, and showing a default value within this list. Here are two separate lists ...
51
votes
5
answers
20k
views
Angular 6+ :ProvidedIn a non root module is causing a circular dependency
I'm trying to provide a resolve service via the new providedIn attribute.
This is a translations resolver which I use in a protected module:
import { Injectable } from '@angular/core';
...
35
votes
1
answer
17k
views
Angular component default style css display block
I am sick of all my angular elements being 0x0 pixels, because they have names like app-card, app-accordion, which the browser does not recognise as HTML5 compliant elements and as thus, will not give ...
0
votes
2
answers
3k
views
How to create a Hierarchy, using Angular 2, 4, 5, 6, 7, 8, 9
I want to create a hierarchy from a json file using Angular 2 or Angular 4. Hierarchy of location may change based on the requirement. Can anyone suggest me how to create a required template. Possible ...
65
votes
2
answers
5k
views
Angular CLI HMR with Lazy-Loaded routes hot-reloads the whole thing
(Confirmed an issue even with Angular 7). Let's get this fixed!
I'm using HMR as set up here: https://github.com/angular/angular-cli/wiki/stories-configure-hmr from a fresh ng new build.
If I ...
6
votes
1
answer
2k
views
angular 4 _ how can I change dynamically google map api key
I use google map API in my application like this :
import url with api key in index.html :
<script src="https://maps.googleapis.com/maps/api/js?key=myKey"></script>
and in component ...
31
votes
5
answers
99k
views
how to enable gzip compression in angular cli for production build
I would want to compress the bundle files that are created when building the angular project. I use ng build --environment=${environment} to build the application currently and the version of "@...