This project is intended to show how you can use rxjs for handle animations, requesting data and updating and drawing data into the application. Observables are a really powerful technology that can be use in many different ways.
- Get data from server and display a list
- Add feature to get data on an interval
- Add a drag-and-get-data feature.
All the above features where created using observables. It's basically a replica of what Ben Lesh did in the following video: https://www.youtube.com/watch?v=DBai5EEFioI and for learning purposes. I did't get to make the code work exactly as he did, I still need to figure that out.
https://dist-akffsijeln.now.sh/: You'll need to open inspector and toggle the device view in order to use the drag functionality. The demo is intended to show how rxjs can be used more than just for manage state.
- RxJS By Example (Animations with RxJS & Angular) ft. Ben Lesh
- Ben Lesh - Advanced RxJS: State Management and Animations
- Ng-Cruise - RxJS By Example with Ben Lesh
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.