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

how to load angular modules based on condition

I have three modules in my application home, moduleA, and moduleB In my app component I'm calling an API called session and getting a response value called mode. if mode is moduleA then I have to lazy load moduleA module from the home module and if…
sun
  • 1,832
  • 4
  • 19
  • 31
0
votes
1 answer

ReferenceError: window is not defined: Angular 9

In Angular 7 Universal, I was able to add 3rd party scripts using postscribe (without any special settings). Now I am trying to use postscribe in Angular 9 Universal project like if(this.isBrowser) { // ... my postscribe code here } but its…
Junaid
  • 2,572
  • 6
  • 41
  • 77
0
votes
1 answer

Image is not being centred inside the anchor tag

I am developing an angular project and I have items as components to be displayed.But there is an issue ,while displaying the content. This is the component code.
Aditi
  • 53
  • 8
0
votes
0 answers

Angular: custom download url for specific module

Using the latest Angular how can one accomplish this, creative ideas are welcome. Angular project with the following modules which are lazy loaded (limiting to two modules just for brevity sake but there could be a lot…
Exocomp
  • 1,477
  • 2
  • 20
  • 29
0
votes
1 answer

Angular 9 Mat table edit select cell and bind data

I'm figuring out a way to edit a table using mat table. I needed to only edit one cell which is a dropdown. I use this link to modify my table but I seem to can't resolve my issue. I'm a bit new to angular 9 and help is much appreciated: The error:…
Ashane Alvis
  • 770
  • 2
  • 18
  • 42
0
votes
1 answer

Angular 9 show data change [instantly] without reload

I want to increase my like arrays length when clicking on the like button and decrease the like length from the database. Here is my code in brief like.component.ts @Input('isLiked') isLiked: boolean; likes: Like[] = []; localUser; …
0
votes
1 answer

Updating a list in ionic modal updates original list ionic 5

I have a clarification, Basically i am passing a list from parent page to Ionic modal. In modal, i will iterating over a list. i am basically modifying a property of an object on click of ion-item. Below is the html code in the modal.
coder12346
  • 39
  • 2
  • 12
0
votes
1 answer

How to overlay text on ion-item in Ionic 4

I have a list as shown in the below image. As i click on the plus icon on each item,i will be calling a rest api to update the database. As i get a response, i want to overlay a success text message with transparent black background for few seconds…
coder12346
  • 39
  • 2
  • 12
0
votes
1 answer

Angular 9: how to dynamically add rows based on drop down value

I'm currently learning Angular9 with Material and I have here a sample form for raffle. User fills out raffle info, they select from dropdown how many prizes are in this raffle and who are the winners. I have a drop down value selected and I want…
0
votes
1 answer

Is there a correct way to add same data documents into two different collections in firestore?

Following code inserts data into the 'doctors' collection in firestore. But I want to add the same data records into another collection named 'next' in the same firestore database simultaneously. service.ts create_Newdoctor(Record){ return…
pghasandi
  • 19
  • 7
0
votes
1 answer

Validation not working on angular reactive forms

I have a simple reactive form and I took the guide from https://medium.com/@jinalshah999/reactive-forms-in-angular-a46af57c5f36 to make the reactive form for validation in angular 9. I dont know I posted in stackbliz but I got three links: EDITOR…
Random guy
  • 883
  • 3
  • 11
  • 32
0
votes
1 answer

Angular Validator that checks if an email is unique to a database set or the current email of a logged in user

In my current application I am trying to build a form that allows users to change their email or username. I have a validator on the form fields so users cannot have the same username or password as other users. I prefill the field with users'…
user12644181
0
votes
1 answer

Changing a theme primary color

I am using Angular 9 with Nebular 5. I want to change the primary color of my theme. According to the site I could use something like the following: @import '~@nebular/theme/styles/theming'; @import…
MHOOS
  • 5,146
  • 11
  • 39
  • 74
0
votes
1 answer

Angular9/rxjs6.5: How to Transform an Array of Observable Object Array to an Observable Object Property Array?

I'm using Angular(9) Powered Bootstrap (ng-bootstrap 6.1) and am providing ngbTypeahead with an Observable like so: search = (text$: Observable) => { return text$.pipe( debounceTime(200), distinctUntilChanged(), …
CAK2
  • 1,892
  • 1
  • 15
  • 17
0
votes
2 answers

Angular 9 + Ngnix = 404 when deeplinking

I'm creating an Angular 9 application with a Loopback 4 backend using nginx. When using ng serve I can navigate to different pages and refresh the page without issue. However after pushing to the staging server, I can navigate the app but if I…
John Tiggernaught
  • 758
  • 1
  • 6
  • 25