0.0.13 • Published 3 years ago

@webresto/ng-core v0.0.13

Weekly downloads
91
License
ISC
Repository
github
Last release
3 years ago

@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

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

0.0.13

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago