Skip to main content
The 2024 Developer Survey results are live! See the results

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.

196 votes
18 answers
177k views

Errors: Data path ".builders['app-shell']" should have required property 'class'

I am getting this error while running my application. Here are the details of my application. Angular CLI: 7.3.3 Node: 10.15.1 Angular: 7.2.7 @angular-devkit/architect -0.13.3 @angular-devkit/...
Ekta Gandhi's user avatar
  • 1,979
131 votes
5 answers
394k views

How to set value to form control in Reactive Forms in Angular

I'm new to Angular. Actually, I'm trying to subscribe data from a service and that data, I'm passing to form control of mine from (example, it's like an edit form). import { Component, OnInit } from '@...
sun's user avatar
  • 1,942
122 votes
24 answers
128k views

How to remove space bottom mat-form-field

I use angular 7 with angular material and i want to remove the space bottom as you can see. I tried many way but no sucess.
user9714967's user avatar
  • 1,832
112 votes
7 answers
126k views

Global scss variables for Angular components without importing them everytime

I do already have SCSS variables defined in src/styles/settings/_variables.scss and I am importing them into src/styles.scss, but still these variables aren't available for every single component. Is ...
Volodymyr Humeniuk's user avatar
84 votes
13 answers
461k views

Access to XMLHttpRequest has been blocked by CORS policy

I've a problem when I try to do PATCH request in an angular 7 web application. In my backend I have: app.use((req, res, next) => { res.set({ "Access-Control-Allow-Origin": "*", ...
rikg93's user avatar
  • 1,238
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 ...
Augie Gardner's user avatar
57 votes
3 answers
35k views

Property 'matchAll' does not exist on type 'string'

I want to apply Reg Expression on string. In order to get all groups result i am using matchAll method. Here is my code const regexp = RegExp('foo*','g'); const str = "table football, foosball"; let ...
Yousuf's user avatar
  • 779
55 votes
2 answers
44k views

No name was provided for external module

I created a data library, then tried to include the data library into another created library. Built fine, but received - "No name was provided for external module 'my-data' in output.globals – ...
user avatar
54 votes
5 answers
43k views

Angular: create is deprecated: use new Observable() instead

I recently updated my version of angular using ng update and when running ng lint I am getting the error create is deprecated: use new Observable() instead this.data$ = Observable.create(t => { ...
mruanova's user avatar
  • 6,885
52 votes
6 answers
132k views

How to reload or refresh only child component in Angular 8

I have two components, One parent and Other Child. HTML Part <div> <div class="row col-md-12"> <div class="col-md-4"> <!-- Some HTML Code of Parent component over ...
Saurabh Singh Rajput's user avatar
51 votes
2 answers
72k views

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 soon as I upgraded it to angular-8.x it started ...
Akhilesh Kumar's user avatar
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'; ...
Rotem jackoby's user avatar
47 votes
8 answers
45k views

CORS policy don't want to work with SignalR and ASP.NET core

I have a problem with my ASP.NET core API and my Angular Client. I want to implement SignalR to have a connection between API and Angular. The cors policy are already activated on our client and the ...
thelittlewozniak's user avatar
41 votes
13 answers
196k views

Angular 7 error RangeError: Maximum call stack size exceeded

I am trying to learn angular by following the official tutorial but when following steps for hero component and hero detail component, it raises an error "RangeError: Maximum call stack size ...
Abdul Ali's user avatar
  • 1,927
39 votes
1 answer
57k views

No provider for InjectionToken angularfire2.app.options [duplicate]

Recently I started to learn to use the concept of Firebase in combination with angular. As a start, I try to make the login process work. Currently, I get an annoying error when I try to navigate to ...
Cornelis's user avatar
  • 1,821

15 30 50 per page
1
2 3 4 5
348