maiyaporn / angular2-wizard

Angular2 - Form Wizard Component
118 stars 119 forks source link

Doesn't work with AOT, gives private property error #16

Closed rushi216 closed 7 years ago

rushi216 commented 7 years ago

It works with JIT, but when using AOT compilation it gives error "Property 'steps' is private and only accessible within class 'WizardComponent'"

Full error details:

Property 'steps' is private and only accessible within class 'WizardComponent'. Property 'isCompleted' is private and only accessible within class 'WizardComponent'. Property 'hasPrevStep' is private and only accessible within class 'WizardComponent'. Property 'activeStep' is private and only accessible within class 'WizardComponent'. Property 'hasNextStep' is private and only accessible within class 'WizardComponent'.

jackjamieson commented 7 years ago

I believe this is the associated Angular CLI issue https://github.com/angular/angular-cli/issues/5623.

Properties need to be public if they are accessed within the template.

rustamguseynov commented 7 years ago

Any updates?

dennisholmer commented 7 years ago

+1