How to use @nrwl/angular - 10 common examples

To help you get started, we’ve selected a few @nrwl/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github merlosy / ngx-material-file-input / apps / demo / src / app / app.module.ts View on Github external
import { MatButtonModule } from '@angular/material/button';
import { ReactiveFormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { MaterialFileInputModule } from 'ngx-material-file-input';
import { CodeSampleComponent } from './code-sample/code-sample.component';
import { MenuComponent } from './menu/menu.component';
import { UsageComponent } from './usage/usage.component';
import { MatSidenavModule } from '@angular/material/sidenav';
import { MatListModule } from '@angular/material/list';
import { AppearanceComponent } from './appearance/appearance.component';

@NgModule({
  imports: [
    BrowserModule,
    NxModule.forRoot(),
    BrowserAnimationsModule,
    ReactiveFormsModule,
    // Material modules
    MatButtonModule,
    MatFormFieldModule,
    MatIconModule,
    MatInputModule,
    MatListModule,
    MatSidenavModule,
    MatToolbarModule,
    // Lib Module
    MaterialFileInputModule
  ],
  declarations: [
    AppComponent,
    AppearanceComponent,
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / ngrx-forms / src / lib / +state / ngrx-forms.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / ngrx-router / src / lib / +state / router.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / article-list / src / lib / +state / article-list.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / article / src / lib / +state / article.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / profile / src / lib / +state / profile.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / ngrx-error / src / lib / +state / ngrx-error.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / settings / src / lib / +state / settings.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / auth / src / lib / +state / auth.effects.spec.ts View on Github external
it('should return a LoginSuccess action, with user information when login succeeds', () => {
      const result: User = {
        email: 'test@gmail.com',
        token: 'token',
        username: 'test',
        bio: '',
        image: '',
      };
      const loginAction = AuthActions.login();
      const loginSuccessAction = AuthActions.loginSuccess({ user: result });

      actions$ = hot('-a---', { a: loginAction });
      const response = cold('-a|', { a: result });
      const expected = cold('--b', { b: loginSuccessAction });
      service.login = jest.fn(() => response);

      (expect(effects.login$) as any).toBeObservable(expected);
    });
github stefanoslig / angular-ngrx-nx-realworld-example-app / libs / home / src / lib / +state / home.effects.spec.ts View on Github external
it('should work', async () => {
      actions = hot('-a-|', { a: { type: 'LOAD_DATA' } });
      expect(true).toBeTruthy();
    });
  });

@nrwl/angular

The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, and Cypress. - Gen

MIT
Latest version published 1 month ago

Package Health Score

92 / 100
Full package analysis