This package has been deprecated

Author message:

Please use @webresto/ng-gql

@webresto/ng-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

@webresto/ng-core

Установка модуля

Модуль устанавливается с Git репозитория, в папку node_modules

Подключение модуля в проект

Добавьте следующие в ваш app.module.ts

import { ngCoreHttpInterceptorProviders } from '@webresto/ng-core';
providers: [
  ..........
  ngCoreHttpInterceptorProviders
],

Пример использования @webresto/ng-core в своих модулях

import { NetService, EventerService, EventMessage } from '@webresto/ng-core';
import { tap } from 'rxjs/operators';
..........
constructor(
    private net:NetService,
    private eventer:EventerService
) {
    this.net.post('/api-url', data)
      .pipe(
        tap(
          result => {
            ........
          },
          error => this.eventer.emitMessageEvent(
            new EventMessage('error', 'Ошибка', error)
          )
        )
      );
}

Для внесения правок без стороннего проекта:

Выполните следующие команды:

git clone this_repo/url
cd ng-core
npm install
npm-install-peers
..........

Теперь вы можете внести правки в папке /src После внесения правок, выполните

ng build

И можете смело делать комит и пушить его в удаленный репозиторий.

Readme

Keywords

none

Package Sidebar

Install

npm i @webresto/ng-core

Weekly Downloads

0

Version

0.0.13

License

ISC

Unpacked Size

135 kB

Total Files

25

Last publish

Collaborators

  • axrl
  • xziy