I have a created a new Angular Project using Angular-CLI.
The versions I am using are:
Angular-Cli: 1.0.2
Angular: 4.0.0.
I have added a lot of code in it but now, when I build my project using below command I get bunch of errors
ng build --target=production --env=staging
Errors:
/src/app/views/signup/signup.component.html (21,86): Property 'email' is protected and only accessible within class 'SignUpComponent' and its subclasses.
/src/app/views/signup/signup.component.html (26,80): Property 'password' is protected and only accessible within class 'SignUpComponent' and its subclasses.
Can someone please help me in this regard that how can I remove these errors? The build is successful when I omit --target=production BUT in past I got issue that without specifying target browser cache the old deployment version and user has to delete the browser cache to effect latest changes/deployment.