Top Banner
31

Creating BananaJS with Angular 2, Angular CLI, and Material Design

Apr 16, 2017

Download

Technology

Tracy Lee
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Creating BananaJS with Angular 2, Angular CLI, and Material Design
Page 2: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Good Evening!made with keynote by andrew hask

@ladyleet

Page 3: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material DesignHow many of you are using Angular 2?by andrew haskin

@ladyleet

Page 4: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material DesignHow many of you are using Angular CLI?by andrew haskin

@ladyleet

Page 5: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleethttps://www.youtube.com/watch?v=1NXhOChi54U

Page 6: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Tracy Lee

@ladyleet github.com/ladyleet

modern-web.org medium.com/@ladyleet

@ladyleet

Page 7: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Entrepreneur sold my startup Dishcrawl

Junior DeveloperPlaying with frameworks & JS

Traveling Entrepreneur New company, #digitalnomad

Who Knows? #YOLO

@ladyleet

Bit About My Life

Page 8: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

Reason is Easy?

• Angular-CLI (thx ember-cli) • Convention over configuration

• Scaling across larger teams • Quicker ramp time

Page 9: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material Design

Today I want to show you

- Building an Angular 2 Angular-CLI app - Demo of newest new router - Using template driven forms - Using Firebase to deploy & host

by andrew haskin

@ladyleet

Page 10: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

Latest Versions

Angular 2 : Final!

Router: 3.0.0

Angular-CLI : 1.0.0 beta 15

Page 11: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

We’re prototyping the bananaJS app

Page 12: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Here’s the journey we’re about to take

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Deploying to Firebase

Template-driven forms

Using the new router

Page 13: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Angular 2

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Deploying to Firebase

Template-driven forms

Using the new router

Page 14: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material Design

$ npm install angular-cli

$ ng new <name-of-app>

$ ng s

@ladyleet

Page 15: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 16: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material Design$ npm install materialize-cssby andrew haskin

@ladyleet

Page 17: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material Design

add to your index.html file <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/

jquery.js"></script>

<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css”>

<script src=”https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/js/materialize.min.js"></script>

by andrew haskin

@ladyleet

Page 18: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

Success Looks Like This

Font will change to material design standard font - Roboto

Page 19: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 20: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

Angular 2 Angular-CLI Webpack App Structure component based.css .html .spec.ts .ts

Page 21: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 22: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Material Design

Basic Component Generation $ ng generate <component-name>

Shortcuts & Configurations (use ng g - - help for full list)

$ ng g c -is -it - - no-spec <component-name> (generates component and adds inline style, inline template, and doesn’t

generate spec file)

by andrew haskin

@ladyleet

Page 23: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 24: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 25: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Angular 2

Deploying to Firebase

Template-driven forms

Using the new router

Page 26: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Create angular-cli ng2 app

@ladyleet

What we’ve learned today

Configure materialize-css

Ng2 ng-cli app structure

Creating components

Deploying to Firebase

Template-driven forms

Using the new router

Page 27: Creating BananaJS with Angular 2, Angular CLI, and Material Design

Community that’s helped me along

@ladyleet

Angular Bootcamp@angularbootcamp

One Hungry Mind Training@simpulton

Angular Master Class@pascalprecht

The Ben Lesh@benlesh

Deborah Kurata@deborahkurata

Sean Larkin@thelarkinn

Mike Brocchi@brocco

Page 28: Creating BananaJS with Angular 2, Angular CLI, and Material Design

made with keynote

@ladyleetangularconnect.com

Page 29: Creating BananaJS with Angular 2, Angular CLI, and Material Design

@ladyleet

Resources

Github starter repo: https://github.com/ladyleet/bananajs

Post: Using the new release of Angular 2’s routerhttps://medium.com/@ladyleet/figured-this-would-help-yall-a-bit-if-i-walked-through-it-72910e1497e#.stfat5rpl

Post: Displaying data using ngFor https://medium.com/@ladyleet/displaying-data-with-the-ngfor-directive-in-your-angular-2-app-1b72cab1121e#.vpiznb2bi

Tracy Lee

@ladyleet github.com/ladyleet

modern-web.org medium.com/@ladyleet

Page 30: Creating BananaJS with Angular 2, Angular CLI, and Material Design

made with keynoteThank you!

@ladyleet

Page 31: Creating BananaJS with Angular 2, Angular CLI, and Material Design