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.

Questions about Angular version 7, the web framework from Google. Angular version 7 entered a 3 year Long Term Support period on July 1, 2018.

See the changelog for what changed in version 7.

If you need help upgrading from version 7 to version 8, please see the Official Angular upgrade guide

5213 questions
1
vote
0 answers

How wait until complet http request in angular-7

import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { Post } from 'src/app/sign-in/post'; @Injectable({ providedIn: 'root' }) export class NewUserService…
1
vote
1 answer

Protractor right click works fine. but can not selecting an option inside it

I am able to find the button inside the context menu , but i am unable to click that button the following code is able to click the button but the it comes with an error telling that Failed: script timeout (Session info:…
1
vote
1 answer

handling multiple click events , if all are under single div which is clickable

I am working with Angular Project I have Implemented mat card that is clickable In that card there are two buttons eg
ANURAG RANJAN
  • 115
  • 2
  • 16
1
vote
1 answer

Reusable Types (Interfaces) in angular 8

I am trying to create reusable interface which can be used for object of same type. like UserDetails , in declaration.d.ts declare module DataModel { interface UserDetails { userName: string; userId: number; } } So I tried…
Prasad
  • 1,783
  • 5
  • 22
  • 26
1
vote
1 answer

Build issue after updating from Angular 7 to Angular 8

I recently updated a project from Angular 7 to Angular 8. When I go to build to prod I'm now getting the following error. ERROR in app/app.component.ts:7:36 - error TS2307: Cannot find module '@angular/router/src/router_module'. 7 import {…
Artemis J
  • 331
  • 1
  • 5
  • 20
1
vote
0 answers

VS Code 2017 F12 or Crtl Click Goto Definition not working, Angular 7.3.9

I am a beginner writing in Angular 7.3.9 I really need to use the the f12 function or ctrl right click to go to the definition. Currently it is not working. I am trying to uninstall and reinstall the code or is there any other way that guru out…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
1
vote
2 answers

Angular 7 duplicate component rendered in router-outlet

This happens only sometimes ( usually after opening the application in the morning ). We are using SwUpdate to update the app, and this behavior seems to coincide with the update times. The result html looks like this:
Eli
  • 1,670
  • 1
  • 20
  • 23
1
vote
2 answers

How to reference right routerlink in mat-sidenav Angular 7?

I'm new in Angular. I need to use the same router link in my mat-list-item as in the sub mat-sidenav-content. For example: [routerLink]="['/list',{outlets: {sidebar: ['general', employee.userId]}}] Is the correct link which I also need to be the…
Lydia
  • 11
  • 1
1
vote
0 answers

Angular 7 move the caret in contenteditable div

I'm developing a basic html editor and I need to add a li to an ol when the return get pressed. I've managed to do it but every time I update the innerhtml in my contenteditable div the caret reset to the start position. I'd like to position the…
1
vote
2 answers

i want to sum three fields which is get through database

page.ts price = 300,residential_package = 120, accompany = 1335; this.delegates_total = this.price + this.residential_package + this.accompany; result shows 3001201335 I want to add these fields value but it doesn't give me correct result…
Mahak Garg
  • 53
  • 5
1
vote
2 answers

How to add backdropClass for mat-select?

Want to add backdropClass to specific mat-select cdk-overlay-pane. How can we do it. No input called backdropClass for mat-select in the…
Sushil Kumar Gupta
  • 180
  • 1
  • 1
  • 10
1
vote
0 answers

export html to xlsx using angular 7

I have tried to download my complex html table to excel using javascript code in angular 7.
Kavya Shree
  • 1,014
  • 2
  • 17
  • 52
1
vote
0 answers

How to copy data from a spreadsheet like excel into a html table and display it using angular 7

Hi everyone I am very new to javascript/typescript/angular. I need to copy data from excel,paste in textarea and then on clicking the enter button the copied data must be populated in a table. After copying the data into textarea and hitting the…
Anirudh
  • 13
  • 4
1
vote
1 answer

Angular reactive formgroup clear error in component not clearing from template

I am dynamically clearing the errors of my reactive form like: this.courseForm.setErrors(null); But the errors are still displayed in my template:
Mukil Deepthi
  • 6,072
  • 13
  • 71
  • 156
1
vote
0 answers

print html table to excel using angular 7

I need to export my table in excel using angular 7. Almost I tried with packages like xlsx,exceljs etc where I can achieve till table format like normal way is working fine. But in case of like this,
Kavya Shree
  • 1,014
  • 2
  • 17
  • 52
1 2 3
99
100