Angular 2 Component Loader

The component loader is an attribute directive that can be attached to any component allowing the display of a loading message during data loading. While the message is being diaplayed, the component UI is blocked from user interaction. The loading message itself can be customized using an exposed directive property.

Demo

You can see the running demo here. A timeout is used to simulate data loading calls.

Running using Angular CLI Development server

This project was generated with angular-cli version 1.0.0-beta.18.

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.