Skip to content

Angular 4 Observable Example, Using BehaviorSubject, AsyncSubject, ReplaySubject

License

Notifications You must be signed in to change notification settings

koushik-elite/Angular-Observable-Sample

Repository files navigation

Angular 4 Observable Example

Using BehaviorSubject, AsyncSubject, ReplaySubject

This simple projects shows communication between parent and child Components and Communication between sibling components using RxJs (Reactive Programming) additional with reactive form implementation

MyApp

This project was generated with Angular CLI version 1.6.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Demo ScreenShot 1

ScreenShot

Demo ScreenShot 2

Click on the "Start" button bellow to start the timer then subscribe each component with your own delay time

ScreenShot