This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ng new gym.com --createApplication=false --routing=false --style=scss --directory=. --newProjectRoot=apps --skipInstall=true | |
| ng g application gym --experimentalIvy=true --skipInstall=true --style=scss --prefix=gym | |
| ng g application gymsearch --experimentalIvy=true --skipInstall=true --style=scss --prefix=gym | |
| ng g application gymsolutions --experimentalIvy=true --skipInstall=true --style=scss --prefix=gym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Directive, | |
| InjectFlags, | |
| Input, | |
| OnInit, | |
| ɵɵdirectiveInject as inject, | |
| } from '@angular/core'; | |
| import { ControlContainer } from '@angular/forms'; | |
| import { FormArray, FormBuilder, FormGroup } from '@ngneat/reactive-forms'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const standaloneMocks: Type<any>[] = []; | |
| TestBed.overrideComponent(component, { | |
| remove: { imports: standaloneMocks }, | |
| add: { imports: MockComponents(standaloneMocks) }, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Provider, Type } from '@nestjs/common'; | |
| import { getDataSourceToken, getRepositoryToken } from '@nestjs/typeorm'; | |
| import { DataSource, DataSourceOptions, Repository } from 'typeorm'; | |
| export function provideCustomRepository<T>( | |
| entity: Type<T>, | |
| repository: Type<Repository<T>>, | |
| dataSource?: DataSource | DataSourceOptions | string | |
| ): Provider { | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Injectable() | |
| export class ProductsSearchState extends searchStore<Product>() { | |
| private readonly api = inject(ProductsService); | |
| search(criteria: SearchCriteria) { | |
| console.log(criteria); | |
| // this.api.query(criteria); | |
| } | |
| } |
OlderNewer