Coder Social home page Coder Social logo

angular2-demo's Introduction

A Fully Functional Angular 2 Demo Application

Slides: https://luixaviles.github.io/angular2-demo/

Updates

NOTE: Project updated to latest Angular version: 6.1.9.

I decided to update this project since a lot of people arrived here from Google and other sources. Keep in mind you should use "Angular" to describe versions 2+ of the framework: It's just Angular ;-)

I wrote this demo for a tech talk in July, 2016.

Support this project

  • Star GitHub repository โญ
  • Create pull requests, submit bugs or suggest new features
  • Follow updates on Twitter or Github

Description

This demo is based on puppy-love project. The features of this project includes:

  • A Service definition, so that HTTP calls can be performed to display initial data.
  • A custom model definition, to allow map used data.
  • Dependency Injection.
  • Two way data binding(Using [(ngModel)]).
  • Use of *ngIf and *ngFor into provided form.
  • Events triggering after click on a button. (click)
  • Use of Material Design components for Angular 2

The app uses Random user Generator to show initial data. This demo was presented in Google I/O Extended event in Cochabamba, Bolivia(July, 2016).

Screenshots

Prerequisites

First, ensure you have the following installed:

  1. NodeJS - Download and Install NodeJS
  2. Git - Download and Install Git

After that, use Git bash to run all commands if you are on Windows platform.

Install dependencies

Install Angular CLI:

npm install -g @angular/cli

For more details about Angular CLI, please refer to: https://cli.angular.io/

Run the project

To run the demo project locally, just install dependencies and run the application in development mode:

$ npm install
$ ng serve -o

Now you can open your browser and load http://localhost:4200

Try the code, verify the current behavior. Update the code and configurations and test again!

Please feel free to contact me if you have any question.

License

MIT

angular2-demo's People

Contributors

luixaviles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular2-demo's Issues

Local workspace file ('angular.json') could not be found.

After a successful npm install, ng serve fails:

$ ng serve --open
Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
    at WorkspaceLoader._getProjectWorkspaceFilePath (/usr/local/lib/node_modules/@angular/cli/models/workspace-loader.js:44:19)
    at WorkspaceLoader.loadWorkspace (/usr/local/lib/node_modules/@angular/cli/models/workspace-loader.js:31:21)
    at ServeCommand._loadWorkspaceAndArchitect (/usr/local/lib/node_modules/@angular/cli/models/architect-command.js:201:32)
    at ServeCommand.<anonymous> (/usr/local/lib/node_modules/@angular/cli/models/architect-command.js:53:25)
    at Generator.next (<anonymous>)
    at /usr/local/lib/node_modules/@angular/cli/models/architect-command.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/local/lib/node_modules/@angular/cli/models/architect-command.js:3:12)
    at ServeCommand.initialize (/usr/local/lib/node_modules/@angular/cli/models/architect-command.js:52:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/models/command-runner.js:127:23)

angular-cli version issue

I am facing issue while running the "ng serve", it shows @angular-cli should be less than version (5.0.0)
Please suggest me how to run this application.

Thanks,
Chandan

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.