Questions tagged [angular9]

Questions about Angular version 9, the web framework from Google. Use this tag for Angular questions which are specific to only version 9. Use tag Angular for any Angular questions which are not specific to an individual version

Questions about Angular version 9, the web framework from Google.

New Breaking Changes

  • Angular now compiles with Ivy by default. See Ivy compatibility section.

  • CLI apps compile in AOT mode by default (which includes template type-checking). Users who only built with JIT before may see new type errors. See our template type-checking guide for more information and debugging tips.

  • Typescript 3.4 and 3.5 are no longer supported. Please update to Typescript 3.6.

  • tslib is now listed as a peer dependency rather than a direct dependency. If you are not using the CLI, you must manually install tslib, using yarn add tslib or npm install tslib --save.


See the changelog for latest version information.

As of December 2019, the current RC version is 9.0.0-rc.7

Consider using the Update Guide for tips before changing the version.

You can read more about Angular version 9 here

1936 questions
0
votes
1 answer

Angular data appears on console.log but not in the component view

I am using Angular 9 and I have this code: app.component.html

joe2020wow
  • 237
  • 5
  • 12
0
votes
1 answer

Angular / Electron service output passed to variable but returning undefined

I have a service and when I run the code labeled #1 it returns to data in the console but when I assign it to a variable I get undefined. Here is the code: In the Service: executeShell(command) { exec(command, (error, stdout, stderr) => { if…
joe2020wow
  • 237
  • 5
  • 12
0
votes
0 answers

SCSS - Set, Export and Update Variable Values

I am trying to figure out how I can create an .scss class that will store and update some global theme colors based on when the user changes themes. This in Angular 9. @each $skin, $data in $skins { $skin-mask-slight-color: map-get($data,…
Cody Pritchard
  • 703
  • 2
  • 15
  • 31
0
votes
2 answers

How to fix "Cannot read property 'options' of undefined" in angular formly?

I'm trying to use Formly in Angular 9 for some dynamicly configured forms. It was worked well with angular 8, but when I upgrade the project to angular 9, i had the following errors. My component class: export class CityFormComponent implements…
0
votes
0 answers

Angular9 / Change [src] folder hierarchy

in an Angular9 app I have a problem with some imgs that dont load properly. In fact is a folder hierarchy issue. Due to my components structure when I call the heroe.img property of my obj heroe, the img url is bad. This is the one Angular generate…
Jmainol
  • 357
  • 4
  • 18
0
votes
1 answer

why error has not set in formarray custom validation valuechanges

I have a below demo app and trying to set the errors in custom validators why it is not setting. Step: click on add users and type the value . On value changes , i have call the customer validator and set the error or return the error but it is not…
0
votes
0 answers

Angular: parsing JSON variables to SCSS causes unit tests(karma) to fail

In my angular app, I am trying to use data from a json file into scss and I followed the solution provided here by Christos Lytara Angular: How to parse JSON variables into SCSS Error Screenshot I have tried this for my application and it works…
0
votes
1 answer

Material element is unknown in second template within same component in Angular 9

I'm new to angular. I'm working with material bottom sheet in material angular. In main component.ts file I'm describing second html file with help of component decorator but when compiling the project compiler says that is not known…
Jawad
  • 1
0
votes
2 answers

ERROR in The target entry-point "@angular-material-extensions/google-maps-autocomplete" has missing dependencies: - @angular/flex-layout

Currently, my application is in Angular 8, and I am using @angular-material-extensions/google-maps-autocomplete library in my project. While updating my project from Angular 8.1.0 to 9.0, I update this dependency using below command: ng update…
Rahul Upadhyay
  • 128
  • 2
  • 10
0
votes
3 answers

Initialize plugin through service and use it in child components

I'm trying to initialize plugin in parent element through service and then use plugin object in child components. But i have problem that plugin object returns undefined in child components. I believe if i initialize plugin in constructor() then i…
0
votes
0 answers

Allow selection on disabled form control in Angular 9

I'm using a dynamic form with Angular 9 and i'd like to select text on disabled fields but i'm not able to. I use this form for both the edition and the readonly usage. Here is an exemple of one of the inputs on my form
Timothée
  • 7
  • 1
  • 7
0
votes
1 answer

I want to convert base64 string of a Word doc to a base64 string of PDF in JavaScript/Angular 9

I am using the docx library to generate a Word document (.docx) on the client side (Angular 9). I also want to be able to save the file as a pdf. I can get a base64 string/uint8array/blob, but I believe this is different for different types of…
0
votes
1 answer

Angular 9 reactive form bypasses form validation if dropdown automatically populated

So I'm working on a reactive form for user details. I have 2 dropdown for province and municipality. After form init, the province field has *ngFor loop and based on the selection the municipality options will also load using *ngFor. This is when…
Rye
  • 445
  • 4
  • 15
0
votes
1 answer

How to define which component is responsible?

I have the following nested structure of components:
user13664319
0
votes
1 answer

What might cause a property length of null exception when using a Material Data Table?

My issue is similar to the one discussed here, but none of the suggestions there has helped, and my situation is slightly different. I have a parent component assigning an array to a child component's input property, which then uses that data to…
RobC
  • 1,303
  • 3
  • 15
  • 32