Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Latest commit

 

History

History

ibis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Project Ibis

Project Logo This is a Ibis (Rapp)

Angular 2 services and injections

This project shows ...

  • How to define CSS styles inside the Angular 2 Component
  • how to enable Angular 2 productive mode
  • What is dependency injection (part 1)
  • How to use Angluar dependency injection (part 2)
  • How to use Angluar services (part 2)
  • How to create and register a logger service (part 2)
  • How to use injector providers (part 2)
  • How to use dependency injective tokens (part 3)
  • How to use optional dependencies (part 4)

Open Angular 2 guide DEPENDENCY INJECTION and work through.

See file main.ts to see how to enable productive mode.
Uncomment the two productive mode statements to enable productive mode.


This tutorial uses Netbeans, Gulp.js, Node.js, Express Web-Server.
Follow these links to find some more information for Netbeans IDE, Gulp.js, Node.js, Express Web-Server, Angular 2 and TypeScript.


How to run the project

To do (on Linux OS) ...

  1. open shell and clone git repository
    git clone <repository-url>
  2. change working directory to project and install node modules
    cd <project-dir>/ibis
    npm install
  3. build the project and start the server
    npm start
  4. start a web-client and test the server
    http://localhost:8080