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.

angular7
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
22 votes
2 answers
32k views

npm install shows error with git not found

I have recently added some dependencies to the package JSON and tried installing npm, but it shows errors related to git not found: npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ...
Harikrishnan C U's user avatar
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
38 votes
5 answers
33k views

How to use Angular7 (angular material) drag drop between two components

As recently angular introduced drag and drop in angular material https://material.angular.io/cdk/drag-drop/overview . All examples describes with in a single component. How to use this in two ...
Jomy Joseph's user avatar
31 votes
2 answers
45k views

How to use reportProgress in HttpClient in Angular? [duplicate]

I am downloading file using HTTP POST method. I want to call another method to show download progress to end user until file download complete. How to use reportProgress in HttpClient for this. ...
user avatar
28 votes
8 answers
57k views

Angular 7 - Multiple outlets : Error: Cannot activate an already activated outlet

Here is the issue that I'm encountering with Angular 7 : I have two outlets : the main app router outlet, and a secondary outlet named 'administration'. When I want to navigate through any ...
Anthony Coucke's user avatar
1 vote
3 answers
14k views

How to return object from service to component in angular

I want to access particular json in ngOninit. So i have id on click in edit button and with the help of that id i am getting complete object from database like form name , form json which etc. So from ...
Ronak Dumaniya's user avatar
1 vote
1 answer
2k views

Custom Controls with Reactive Forms

I am using Angular 7, Angular Material controls with Reactive Forms. I created custom text (matInput type="text"), number (matInput type="number"), select (matSelect) controls with Angular Material ...
Immortal's user avatar
  • 1,252
33 votes
15 answers
93k views

JavaScript heap out of memory in Angular 7 using Azure DevOps

I am getting FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory after Angular 7.1 upgrade. The previous version 6.1 was working perfectly fine. I get the error only ...
Abhishek's user avatar
  • 681
6 votes
1 answer
4k views

CdkDragDrop and ngTemplateOutlet

I'm trying to use Drag&Drop features relased with Angular Material 7. I separated my template in reusable pieces using ngTemplateOutlet and every option can be either a Thing™ or a nested Thing™ ...
Paolo 'Callo' Caleffi's user avatar
1 vote
1 answer
2k views

How to extract the tooltip text within an Angular 7 application using Selenium

I'm trying to read text tooltip in angular7 application via selenium. But get text is returning blank and javascript executor is returning null. Link to the image of the DOM for which I'm not able ...
anirudha agnihotri's user avatar
1 vote
1 answer
7k views

How to retrieve the value from LocalStorage

I'm trying to test out html5 localStorage feature. For some reason, whenever I try to retrieve a value from storage after refreshing the page, i dont get any value. Values are getting stored locally ...
tkamath99's user avatar
  • 659
33 votes
6 answers
35k views

cannot find name 'require' in angular 7(typescript 3.1.3)

My question is why this error shown? ERROR in src/app/p2p/p2p.component.ts(14,16): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try npm i @types/...
ikhwan rozali's user avatar
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 "@...
Cling's user avatar
  • 499
39 votes
2 answers
157k views

How to pipe / map an Observable in Angular

A nested object is showing up as [object Object] so I'm trying to cast it via pipe and map but I'm not getting any where. I've tried the models as classes and interfaces but no help. Can someone tell ...
Tong's user avatar
  • 756

15 30 50 per page
1
2 3 4 5
23