angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
308 stars 55 forks source link

Facade questions #115

Open jon9090 opened 1 year ago

jon9090 commented 1 year ago

Hi, @manfredsteyer hope you can explain some things about this library.

@Injectable({ provideIn: 'root') export class Facade { vm = new BehaviorSubject(..); loadData = this.fooService.loadData;

}

@Injectable({ provideIn: 'root') export class FooService { vm = new BehaviorSubject(..); api = inject(ApiService);

loadData() { return this.api.getData(); } }

domain/index.ts export from './facade1'; export from './facade2'; export * from './facade3';


- all the logic in the facade? Does it mean that no functions allow in the component?