filmov
tv
Angular2 in SECONDS with Angular CLI
Показать описание
I've been teaching myself Angular 2, and how to use the next version of the Angular framework. I've gone through the hello world app, or the tutorial app that they have on their website. I recommend that anyone interested in learning Angular 2 goes and does it because it's quite quick and straightforward to go through it.
If you look at the code for the Tour of Heroes app (02:18) there’s all these files just to make quite simple app. You've got to have this system js config to handle the imports and this typescript config and this package.JSON. You've got to have quite a lot of things to get going
with Angular 2.
Angular CLI is still in the beta phase, but it works very well to do the basic things that you need to do.
To get started it's an npm package, so you can install it with a node package manager.
Once node is installed, load up your terminal or your command prompt or whatever and type sudo (04:44).
NPM install g global Angular CLI and this will install your Angular command line interface tools and it will give you access to the commands. (05:23)
Change to a directory where you like to keep your code. (06:11)
You can see it here you've got your Angular CLI. (07:47)
It also has “ng build” - this will build the project to make it deployable. It will build into a package that could be deployed on the server. (09:54)
You can see that it's turned all of our projects, all of these into a small group of files and my guess is that you can just take this file and put it on a server and then you can start serving your application. (10:13)
That's the Angular CLI!
I recommend you check it out. You can go over to their Github page and you can see all the latest developments and documentation there.
So have a go, let me know your thoughts.
Thanks for watching!
If you look at the code for the Tour of Heroes app (02:18) there’s all these files just to make quite simple app. You've got to have this system js config to handle the imports and this typescript config and this package.JSON. You've got to have quite a lot of things to get going
with Angular 2.
Angular CLI is still in the beta phase, but it works very well to do the basic things that you need to do.
To get started it's an npm package, so you can install it with a node package manager.
Once node is installed, load up your terminal or your command prompt or whatever and type sudo (04:44).
NPM install g global Angular CLI and this will install your Angular command line interface tools and it will give you access to the commands. (05:23)
Change to a directory where you like to keep your code. (06:11)
You can see it here you've got your Angular CLI. (07:47)
It also has “ng build” - this will build the project to make it deployable. It will build into a package that could be deployed on the server. (09:54)
You can see that it's turned all of our projects, all of these into a small group of files and my guess is that you can just take this file and put it on a server and then you can start serving your application. (10:13)
That's the Angular CLI!
I recommend you check it out. You can go over to their Github page and you can see all the latest developments and documentation there.
So have a go, let me know your thoughts.
Thanks for watching!
Комментарии