You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @manfredsteyer hope you can explain some things about this library.
facade should be in the feature-component providers? because I can see each feature created with the facade, should the facade be co-responsive to the component life cycle and destroyed when the component is destroyed?
only facades are allowed to export from domain lib?
facades should expose other services, and the component can't have access to those services?
this code it's how it's should be?
@Component({})
export class Component {
facade = inject(facade);
vm = facade.vm;
ngOnInit() { this.facade.loadData() };
}
@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?
The text was updated successfully, but these errors were encountered:
Hi, @manfredsteyer hope you can explain some things about this library.
The text was updated successfully, but these errors were encountered: