In my code I have a snippet like this :

addHobby(hobby) {
        this.hobbies.push(hobby);
}



If I launch "npm start" with such a code in place, npm start fails with a 
debug log that
includes the following :

src/app/components/user.component.ts(66,11): error TS7006: Parameter 'hobby' 
implicitly has an 'any' type.



If, I however, I launch "npm start" without this code and the code later, 
everything works
fine. What is going on here ?


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to