Frontend. Users list.

Generate a new service inside core project.

Define a test method in core/src/lib/services/api.service.ts.

Include this service into web and mobi root module.

Using in the component.

admin

Define the global variable backendUrl in core/src/environment.ts

ng g s services/api --project=core
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class ApiService {

  constructor() { }

  test(){
    alert('Test');
  }
}
admin
Потратить 2 кредита и начать обучение!
Задать вопрос, прокомментировать.