DEV Community

Discussion on: Angular Ivy: a detailed introduction

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen • Edited

I've noticed that in Angular 9 with Ivy enabled, the component definition is put in the static property Ι΅cmp rather than ngComponentDef.

This is also apparent in some of your compiled code examples.

Collapse
 
eugeniolentini profile image
Eugenio Lentini

Indeed, I have noticed as well, but during the Angular Connect 2019 in different cases that code has been called as compiled/generated.
I am waiting some feedback (if they will arrive) from Angular team members, but I guess that the clean and clear code is taken from some intermediate compilation steps and what we see if the final one emitted by the tsc.

I have checked before writing the post and the presentation and often they refer to that code (text(), etc) as compiled, generated, emitted by the Angular compiler.

I should try to see what happens with the ngc alone.

I keep you posted and then I update the post.
Thanks a lot for your reviewing work, appreciated :-)

Collapse
 
layzee profile image
Lars Gyrup Brink Nielsen

ngComponentDef was in Angular version 8 with Ivy enabled.

Thread Thread
 
eugeniolentini profile image
Eugenio Lentini

I have taken from the slides of the AC 2019, youtube.com/watch?v=S0o-4yc2n-8&li... min 2:00 on going

Thread Thread
 
layzee profile image
Lars Gyrup Brink Nielsen

This was presented 3 months ago. I first noticed it in RC0, but it might have changed before that.

Slides might say one thing, but code doesn't lie 😬

I have been experimenting a lot with Ivy and View Engine in different versions lately.

Thread Thread
 
eugeniolentini profile image
Eugenio Lentini

Totally agree that the code does not lie, I have considered what they have presented, I will add a small note to the post so people are aware that stuff are moving.

Once 9.0.0 will be out I will check write another post, but for the time being too afraid to see changes from one day to another.

Thanks a lot again for your support, it was I was looking for :-)

Thread Thread
 
layzee profile image
Lars Gyrup Brink Nielsen

Yeah, I will also be keeping an eye out. I'm thinking of creating a library for Angular library authors to detect Ivy vs. View Engine, production vs. development mode, testing vs. running app.

Thread Thread
 
eugeniolentini profile image
Eugenio Lentini

It would be awesome πŸ‘

Thread Thread
 
eugeniolentini profile image
Eugenio Lentini

Hello,
in the meantime I have fixed the Uglify stuff and added the code compiled with the RC5 :-)

Thread Thread
 
layzee profile image
Lars Gyrup Brink Nielsen

RC6 now. (Will Ivy be a 2019 release?)

Thread Thread
 
eugeniolentini profile image
Eugenio Lentini

Well unless they sped up for the New Year’s Eve otherwise 2020 😊