Latest Questions tagged Angular

Browse all latest questions tagged Angular

87
Votes
Published 24 Oct, 2022
Java - POST array in RequestBody to Spring Controller as List of Objects

I'm fairly new to Spring, and I've looked at many posts about similar scenarios, but I have yet to figure this out. I'm trying to alter an existing (working) endpoint in my project to pass an array...

2
Votes
Published 24 Apr, 2022
Javascript - Importing Javascript library (jsencrypt) into Angular 2 app

I have looked through all the tutorials revolving around this issue, and havn't been able to find a solution. Some background first. I have a Angular 2 app and I need to use this JS library for encryp...

9
Votes
Published 16 Apr, 2022
Javascript - BrowserslistError: Unknown version 67 of android

I have created one angular library using angular 8 and CLI 8. I am trying to build the library, but I am getting the error. ng build <lib-name> I have gone through some questions posted relat...

72
Votes
Published 16 Apr, 2022
Javascript - How to break ForEach Loop in TypeScript

I have a the below code, on which i am unable to break the loop on certain conditions. isVoteTally(): boolean { let count = false; this.tab.committee.ratings.forEach(element => { con...

32
Votes
Published 16 Apr, 2022
Javascript - Angular: 7.2.1 ES6 class ReferenceError : Cannot access 'X' before initialization

I'm having the following TypeScript class export class Vehicule extends TrackableEntity { vehiculeId: number; constructor() { super(); return super.proxify(this); } } my typescript t...

11
Votes
Published 16 Apr, 2022
Javascript - Change language of Datepicker of Material Angular 4

How to Change language of Datepicker of Material Angular? I can't find in documentation for Angular material 2. Here is a plunkr https://plnkr.co/edit/unzlijtsHf3CPW4oL7bl?p=preview <md-input-conta...

20
Votes
Published 16 Apr, 2022
Javascript - Angular: cdkVirtualFor not rendering new items

I'm building a vertically scrolling calendar. I'm getting the initial days to load, but when new days are added to the list, they aren't being rendered. <cdk-virtual-scroll-viewport class="demo...

39
Votes
Published 07 Jul, 2022
Reactjs - Connect Angular application with ReactJS app?

I have a Angular app and some part of application I want write in ReactJS. How can I inject ReactJS app into existing Angular application? I need also bidirectional communication for components.

206
Votes
Published 16 Apr, 2022
Javascript - Property '...' has no initializer and is not definitely assigned in the constructor

in my Angular app i have a component: import { MakeService } from './../../services/make.service'; import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-vehicle-form', t...

35
Votes
Published 16 Apr, 2022
Javascript - Invalid provider for the NgModule 'DynamicTestModule' when testing a service in Angular 2

This is such an annoying error, thought I'd include another subtle cause to look for in your spec. In my case I specified providers instead of the correct value of provide as below TestBed.configureT...

0
Votes
Published 23 Apr, 2022
Javascript - Append the code right after the current index

I have an add button that allows repeating the code. <div *ngFor="let detail of _detailRowNumber"> <mat-form-field appearance="fill"> <mat-label>Label...

16
Votes
Published 16 Apr, 2022
Javascript - Cors-anywhere.herokuapp.com not working (503). What else can I try?

I am trying to send a get request to the Wikipedia API. I am sending the request form a angular frontend so i'm trying to use the Heroku CORS Anywhere endpoint to avoid CORS issues. For some reason,...

13
Votes
Published 05 May, 2022
React - Difference between ESLint and TSLint

I searched for many articles about this question. I couldn't find any article related to that. Can some tell me what are the cons of Eslint over TsLint. Why do we have to move to ESLint?

20
Votes
Published 16 Apr, 2022
Javascript - Why no Angular-CLI generate command for 'model' in Angular Project?

While learning up Angular I just went through the various Angular-CLI commands to generate individual parts of Angular like 'Component', 'Services', 'Interface', 'Pipes', etc. Generating Angular Ite...

14
Votes
Published 16 Apr, 2022
Javascript - ERROR TypeError: _co.onCLk is not a function

You have named the function wrong in your template, Change "L" to "l" From (click)="onCLk($event)" To (click)="onClk($event)"