Giter VIP home page Giter VIP logo

angular-udemy's Introduction

angular-udemy

This repository is based on the following udemy course
https://www.udemy.com/the-complete-guide-to-angular-2

1. Angular CLI

1.1. Intall the Angular CLI

npm install -g @angular/cli

1.2. Create a workspace and initial application

ng new my-app

1.3. Creat a new component

# Basic version
ng generate component myComponent

# Abbriviation version
mg g c myComponent

# If you do not need a spec file, execute the following command.
ng g c myComponent --spec false

1.3.1. Create a children component

# Parent component
ng g c recipes

# Children component
ng g c recpies/recipe-list

The following directories and files are created.

app/
 └─ recipes/
     ├─ recipes.component.css
     ├─ recipes.component.html
     ├─ recipes.component.ts
     └─ recipe-list/
         ├─ recipe-list.component.css
         ├─ recipe-list.component.html
         └─ recipe-list.component.ts

2. npm package management

2.1. Install dependent packages

yarn install

2.2. Add Bootstrap

After that, add the following lines in angular.json file.

"styles": [
  "node_modules/bootstrap/dist/css/bootstrap.min.css",
  "src/styles.css"
],

3. Debugging

3.1. Angular Augury

A Chrome and Firefox Dev Tools extension for debugging Angular applications.
https://augury.rangle.io/

angular-udemy's People

Contributors

imamachi-n avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.