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

Passing an array from an api call to a second api call

I am trying to make 2 api calls where one api gets the array of IDs that I needed to make another api call according to the IDs that were returned with some object where I can manipulate into displaying some form inputs according to the data I…
AndrewC
  • 13
  • 1
0
votes
3 answers

Angular: How can I get the mat-option and the visible text of the selected option together?

I want to fetch the option text of the option I selected with the option value also. What necessary changes do I need to make in my below code? HTML
Avishek
  • 524
  • 16
  • 38
0
votes
1 answer

Storybook Angular - Inject NgControl

I have the following Class : export class TestComponent implements OnInit, ControlValueAccessor { constructor( @Optional() @Self() public ngControl: NgControl) { if (ngControl) { ngControl.valueAccessor = this; } } And I…
isy
  • 531
  • 1
  • 12
  • 27
0
votes
0 answers

Angular, unable to get list of values from a webservice (JSON)

I'm trying to get a kids' list from JSON webservice, amid logging in I get a JSON response of name.... and the kids list for a specific doctor. I have the response in the console but for some reason when I try to display it in the HTML file I fail…
0
votes
4 answers

How to skip the ngFor when the respond from api is not completely in angular?

Currently I already able to display out all the results in the front end. But how can I make the ngFor only display those objects without $ref and must include the Name and Description in the array? component.html …
MAN CHUN LIEW
  • 49
  • 1
  • 9
0
votes
1 answer

How to handle ngFor properly in HTML when try too iterate throught data in an array?

As the question, I try to iterate through the data in an array and finally it show out. But the problem is it show duplicate title when iterate through it. component.html
Edward Liew
  • 43
  • 1
  • 10
0
votes
1 answer

Perform click event on third party webpage embedded in Angular application

I am building an angular application in which I need to integrate a graph visualization tool. I had made use of HTML tag to integrate that graph into my application. It works super fine. What I need is, When I click on the embedded graph, I…
Faizul Hassan
  • 120
  • 12
0
votes
2 answers

Angular-9: How to make login page as a defualt page in Angular-9?

I have downloaded an open source tamplate of angular9 from a website. When I run the tamplate it shows the dashboard/default by default. I want that it should run auth/signin by default instead of dashboard/default. Routing structure that has…
Najeeb KHAN
  • 41
  • 10
0
votes
1 answer

Angular Auth OIDC; Azue B2C : Getting user profile loading and promise uncaught error after getting Token from Azure

I have implemented auth authentication in Angular 9 app with Azure B2C with using angular-oauth2-oidc library and have successfully managed to get token however I am getting 'Uncaught (in promise)' and error 'loading user info TypeError' error the…
K.Z
  • 5,201
  • 25
  • 104
  • 240
0
votes
1 answer

proper place to subscribe to observable changing on angular 9 component

I am new to angular 9... I have an observable in my template (theme$), which is updating properly, and based on the value of this observable, I want to make changes via javascript in my component definition:
devdropper87
  • 4,025
  • 11
  • 44
  • 70
0
votes
1 answer

angular 9 - module lazy loading in production mode not working

I have a library project in which I have a single module along with few components. In my actual application I want to load the library module dynamically and render the components. Everything working fine in development mode, but when I run my…
Buddha
  • 185
  • 1
  • 15
0
votes
1 answer

use async - await with socket.io nodejs

I'm developing a web application using nodejs socket.io and angular 9. In my backend code I have written sockets in socket.connect.service. Follows is a socket I'm using socket.on('request-to-sit-on-the-table', async function (data, callback) {…
0
votes
1 answer

You are currently using minified code outside of NODE_ENV === "production"

I am getting the error like this You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for…
0
votes
1 answer

ngx-bootstrap typeahead select from ngrx store

I am trying to select my data from ngrx store to pass it to ngx-bootstrap typeahead. My selector from the store is working but i don`t know how i can connect it to the typeahead from ngx. My code is the following: constructor(private store: Store)…
jhen
  • 1,164
  • 1
  • 11
  • 24
0
votes
1 answer

Angular 10 universal | amcharts 4 : Why the server tries to load the chart?

I am used to Angular but I am just starting to use universal (for SEO). I want to use a map from amcharts 4, I have no problems using without Angular Universal. I know that it is a known issue but I do not understand why in my case the server tries…