Code Monkey home page Code Monkey logo

lab-angular-introduction's Introduction

Ironhack logo

DE | Angular Introduction

Learning Goals

After this lesson, you will be able to:

  • Create a static Angular application with Angular CLI.
  • Build an Angular application with one component.
  • Build an Angular application with two nested components.
  • Build an Angular application using nested iterators.

Requirements

Submission

Upon completion, run the following commands:

$ git add .
$ git commit -m "done"
$ git push origin master

Navigate to your repo and create a pull request from your master branch to the original repository's master branch.

In the pull request name, add your campus, name, and last name separated by a dash "-".

Deliverables

All the files in the three folders provided in the starter code, with the necessary code to satisfy the requirements described below.

Introduction

In this lesson we are going to work with Angular for the first time. The goal here is to work on three small projects where you can practice the concepts we've learned thus far.

Starter Code

This lesson is composed of three iterations. In each iteration, we will complete a small, independent project. In the first iteration, we provide you the basic skeleton of the app, while in the other two iterations, you will have to create it.

Iteration #1: Photo Album

In the first iteration we are going to build a photo album. Imagine you have an album at home. On it, you can find a photo and its description. This is what we are going to build.

We will build this album in the AppComponent component. The album will have three photos and their descriptions, and it's not necessary to have an array to store these values.

Easy, right? Add some styles to the page to give your photo album a little flair!

Iteration #2: Article with comments

In the second project of this lesson we are going to create a blog article with comments. We are going to create two different components:

  • The MainComponent component will contain the article, composed of a title, an image, and a description.
  • The CommentsComponent component, that will contain several comments (feel free to add as many comments as you want).

At the bottom of the comments, we will add a comment form to add some reality to our article. We can't have comments without a form! (Don't worry, it doesn't need to work. We will get to that later).

The first thing you will have to do is to generate the project with Angular CLI.

Iteration #3: NBA Champions

Last, but not least, we are going to create a Dashboard with NBA Champions of recent years. In this case, we will need to create one component, that will contain an array of Championships, with the following fields:

  • year of the championship.
  • Name of the champion team.
  • A champion-url to show the team badge.
  • A list with the best players of the champion team, called best-players

You can find the full list of NBA Champions on wikipedia. In our application we have to show at least three of them. The result could be something like this:

Note that we are iterating over two different arrays to show all the information: Championships and best-players of every team.

/Happy coding!

lab-angular-introduction's People

Contributors

nizaroni avatar papuarza avatar lluisarevalo avatar

Watchers

James Cloos 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.