GithubHelp home page GithubHelp logo

drpicox / angular2-thedoctoris-ts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

Angular2 typescript example with Services that use Services

License: MIT License

CoffeeScript 52.82% TypeScript 27.41% HTML 13.47% CSS 6.30%

angular2-thedoctoris-ts's Introduction

NG2 - The Doctor Is - Typescript

This is a initial demo of an scalable Angular2 Application.

Note: You may be interested in the ES5 version at https://github.com/drpicox/angular2-thedoctoris-es5.

Description

### Behavior

This demo has only one component: TheDoctorIsComponent

<tdi-the-doctor-is></tdi-the-doctor-is>

that shows a text if the doctor is in or not.

It also defines two services, one is the Doctor and the other one a Booth. When the component is instantated it uses the Booth to call which makes the Doctor come.

This example shows DI from services to services and services to Components.

### Module

It also defines a module thedoctoris which exports all public elements:

  • TheDoctorIsComponent
  • and THEDOCTORIS_PROVIDERS which lists the providers needed to work properly

### Boot

Everything is compiled through browserify. The boot is executed by the index.html which executes:

<script>
   window.boot();
</script>

The boot is defined in the [boot.ts](src/boot.ts) file and attached to window by the main [index.ts](src/index.ts) script.

angular2-thedoctoris-ts's People

Contributors

drpicox avatar

Watchers

 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.