This course has been updated! We now recommend you take the Angular 9 Fundamentals course.
Transcript from the "Setting Up Angular CLI" Lesson
>> Lukas Ruebbelke: All right, so let's do a real quick challenge. Actually, let me do a demo real quick, just so everybody can see how this works. I'm gonna do it from this terminal here. Let me just click. That's, I think I can do, well, we'll leave it here for now.
>> Lukas Ruebbelke: Git checkout.
>> Lukas Ruebbelke: Just revert. I'm sure there is somebody out there just being like dude you could have done that with one command from the command line. But, all right, so ng g in the case of the challenge I think I do gizmos.
>> Lukas Ruebbelke: In this case, let's do,
>> Lukas Ruebbelke: Burritos. Now, what's gonna happen is you're going to see an error because there is more than one module in the room. So if we go ng g c burritos -m app., let's see if it actually. Now you notice that it created CSS, HTML, a spec, the texture file.
[00:01:33] And then it added it to the app module. Pretty handy. And, if we go into our app modulary, you can see it's been added as a declaration. And from here if we go to the home component template.
>> Lukas Ruebbelke: Well, actually, let's do this. Generally, what it will do is attach to this prefix, in this case it's app.
[00:02:09] So it's app-burritos, and so if I go to home component,
>> Lukas Ruebbelke: app-burritos, let's see what happens here.
>> Lukas Ruebbelke: Wait for it.
>> Lukas Ruebbelke: What happens if I refresh? There we go.