Page cover

Code pedia

Here, you can find some codes we have used during the course, as so you can use them your own project!

Starting your project from scratch

//Just for desktop. Fo Stackblitz, just skip this part!
ng new miyagi-do-lab  //use this command to create a brand new project
npm start // use this to start the project
circle-info

// is comments, do not copy it to the terminal! 😅

// Some codenpm test // run the spec file, unit testing
ng generate component <component> // use this to create your component 
ng add @angular/material // add Angular Material to your app

Adding a new module to your app

ng generate module <module name>
circle-info

app.module is created automatically, as default from ng new

Cloning from a branch in GitHub

git clone -b <module you want>

E.g.,

For cloning module 1, should you want to run it in your machine, do not forget npm i and then npm start

Last updated