open-index/open-npm huggingface dataset:
npm package: @imorg/loading
Description: Directive for Angular apps
Author: improgramer
Latest version: 1.0.2

# Loading Directive

Directive to display loading spinner with a message for Angular apps


## Installation

First you need to install the npm module:

```sh
npm install @imorg/loading --save
```

## Uasage

#### 1. Import the loading module into your application.

```ts
import { LoadingModule } from '@imorg/loading';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    LoadingModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

#### 2. Import the Loading class and create the input for the loading diective

###### 2.1 Import the Loading class
```ts
import { Loading } from '@imorg/loading';
```
###### 2.2 Create the Loading class object

Loading class constructor takes three inputs :
```ts
    isLoading: boolean; // mandatory
    imgURL?: string;  // optional and default : https://codepen.io/james2doyle/pen/LrBqE
    loadingText?: string; // optional and default : ''
```

```ts
// To pass the spinner image along with loading text.
this.loader = new Loading(true, './assets/loading_spinner.gif', 'Loading');

// To use the default spinner without any loading message.
this.loader = new Loading(true);
```

#### 3. Using in html

```html
    <div id='test' *loader='loader'>
        <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Animi maiores excepturi 
        itaque! Fuga quasi ad fugit ex a nobis excepturi voluptatem, quos ipsam corrupti 
        possimus suscipit eligendi non! Suscipit, neque.</p>
    </div>
```

## Demo:

[Demo](https://angular-khffjq.stackblitz.io)
npm package: @imove/cli
Description: imove client
Author: smallstonesk
Latest version: 0.0.7

## iMove-cli

### Install

```bash
npm i -g @imove/cli
```

### Usage

- 初始化项目，创建 `imove.config.js`

```bash
imove -i
# OR
imove --init
```

- 启动开发服务及编辑器

```bash
imove -de
# OR
imove --dev --editor
```

浏览器打开 [http://127.0.0.1:3500/](http://127.0.0.1:3500/)