How to use the @angular/cdk/schematics.addModuleImportToModule function in @angular/cdk

To help you get started, we’ve selected a few @angular/cdk 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 angular / components / src / lib / schematics / ng-generate / dashboard / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / nav / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    addModuleImportToModule(host, modulePath, 'MatToolbarModule', '@angular/material/toolbar');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
    addModuleImportToModule(host, modulePath, 'MatSidenavModule', '@angular/material/sidenav');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
    addModuleImportToModule(host, modulePath, 'MatListModule', '@angular/material/list');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / nav / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    addModuleImportToModule(host, modulePath, 'MatToolbarModule', '@angular/material/toolbar');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
    addModuleImportToModule(host, modulePath, 'MatSidenavModule', '@angular/material/sidenav');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
    addModuleImportToModule(host, modulePath, 'MatListModule', '@angular/material/list');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / address-form / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material/input');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
    addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material/select');
    addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material/radio');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
    addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
    return host;
  };
}
github angular / components / src / lib / schematics / ng-generate / dashboard / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / dashboard / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material/grid-list');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
    addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material/menu');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material/icon');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / address-form / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material/input');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material/button');
    addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material/select');
    addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material/radio');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material/card');
    addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
    return host;
  };
}
github angular / components / src / material / schematics / ng-generate / table / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatTableModule', '@angular/material/table');
    addModuleImportToModule(host, modulePath, 'MatPaginatorModule', '@angular/material/paginator');
    addModuleImportToModule(host, modulePath, 'MatSortModule', '@angular/material/sort');
    return host;
  };
}
github angular / components / src / lib / schematics / ng-generate / dashboard / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout');
    return host;
  };
}
github angular / components / src / lib / schematics / ng-generate / address-form / index.ts View on Github external
return (host: Tree) => {
    const modulePath = findModuleFromOptions(host, options)!;
    addModuleImportToModule(host, modulePath, 'MatInputModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatSelectModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatRadioModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material');
    addModuleImportToModule(host, modulePath, 'ReactiveFormsModule', '@angular/forms');
    return host;
  };
}