An open API service indexing awesome lists of open source software.

https://github.com/design4pro/ngx-call

Call & Await Angular Components
https://github.com/design4pro/ngx-call

angular dialog ngx

Last synced: 4 days ago
JSON representation

Call & Await Angular Components

Awesome Lists containing this project

README

          

# ngx-call

Angular workspace for `ngx-call`, an awaitable UI call helper for Angular components.

The `demo` app is a static landing page and live playground for the library.

## Install

`ngx-call` is published to GitHub Packages as `@design4pro/ngx-call`:

```bash
npm install @design4pro/ngx-call
```

## Development server

The demo imports `ngx-call` from `dist/ngx-call`, so build the library before serving a
fresh checkout:

```bash
npx ng build ngx-call
```

For active demo work, keep the library build running in watch mode:

```bash
npx ng build ngx-call --configuration development --watch
```

In another terminal, start the demo development server:

```bash
npm start -- --project demo
```

Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.

## Demo build

Build the production demo:

```bash
npx ng build demo --configuration production
```

The static output is written to `dist/demo/browser`.

For GitHub Pages, build with the repository base path:

```bash
npx ng build demo --configuration production --base-href "//"
```

## GitHub Pages

The repository includes `.github/workflows/deploy-pages.yml`. To publish:

1. In GitHub, set **Settings → Pages → Source** to **GitHub Actions**.
2. Push to `main` or run the workflow manually.
3. The workflow installs dependencies, builds `ngx-call`, builds `demo`, uploads `dist/demo/browser`, and deploys it to Pages.

## Library build

To build the package library run:

```bash
ng build
```

This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.

## Running unit tests

To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:

```bash
ng test
```

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.