Hi Every one,

I am new to Angular 2 and new to this community. I am learning angular 2 by 
myself. My first resort is the official angular 2 tutorial and I am right 
now going through the new Routing tutorial since the old one has been 
deprecated.

The tutorial generally speaking is of very high quality and easy to 
understand but I got confused when I finished part 2 of it -- "Milestone 
#2: The Heroes Feature". I found that in the code snippets it provided no 
where it referenced the "providers:[HeroService]" as the other tutorial 
does. Instead it is using the constructor method trying to instantiate a 
HeroService on instantiating the component object itself. And because of 
that my code was not working and it took me a bit trouble to find out that.

Anyone knows is that a problem of the tutorial or just I did something 
wrong.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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