How to use the @angular/core.NgModule function in @angular/core

To help you get started, we’ve selected a few @angular/core 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 communitybridge / easycla / frontend-project-management-console / src / ionic / components / member-navigation / member-navigation.module.ts View on Github external
// Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT

import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { MemberNavigationComponent } from './member-navigation';

@NgModule({
  declarations: [
    MemberNavigationComponent,
  ],
  imports: [
    IonicModule,
  ],
  exports: [
    MemberNavigationComponent,
  ]
})
export class MemberNavigationComponentModule {}
github myopenresources / cc / src / app / shared / modal / modal.module.ts View on Github external
import { NgModule }   from '@angular/core';
import { CommonModule }       from '@angular/common';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
 
import {AlertComponent} from './alert.component';
import {ConfirmComponent} from './confirm.component';
import { ModalService } from './modal.service';


/**
 *  模态框模块
 */
@NgModule({
  imports:[
     CommonModule,
     NgbModule
  ],
  declarations: [
     AlertComponent,
     ConfirmComponent
  ],
  providers:[ModalService],
  entryComponents:[
     AlertComponent,
     ConfirmComponent
  ]
})
export class ModalModule { }
github carbon-design-system / carbon-angular-starter / src / app / starter-home / starter-home-routing.module.ts View on Github external
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { StarterHomeComponent } from './starter-home/starter-home.component';

const routes: Routes = [{
	path: '',
	component: StarterHomeComponent
}];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule]
})
export class StarterHomeRoutingModule { }
github google / loaner / loaner / web_app / frontend / src / components / device_list_table / index.ts View on Github external
import {RouterModule} from '@angular/router';

import {DamagedModule} from '../../../../../shared/components/damaged';
import {ExtendModule} from '../../../../../shared/components/extend';
import {GuestModeModule} from '../../../../../shared/components/guest';
import {LostModule} from '../../../../../shared/components/lost';
import {MaterialModule} from '../../core/material_module';
import {DeviceActionBoxModule} from '../device_action_box';
import {DeviceActionsMenuModule} from '../device_actions_menu';
import {DeviceButtonsModule} from '../device_buttons';

import {DeviceListTable} from './device_list_table';

export * from './device_list_table';

@NgModule({
  declarations: [
    DeviceListTable,
  ],
  exports: [
    DeviceListTable,
  ],
  imports: [
    BrowserModule,
    DamagedModule,
    DeviceActionBoxModule,
    DeviceActionsMenuModule,
    DeviceButtonsModule,
    GuestModeModule,
    ExtendModule,
    LostModule,
    MaterialModule,
github vitrivr / vitrivr-ng / src / app / research / containers / audio / audio-query-term.module.ts View on Github external
import {NgModule}      from '@angular/core';
import {FormsModule} from "@angular/forms";
import {BrowserModule} from '@angular/platform-browser';
import {AudioQueryTermComponent} from "./audio-query-term.component";
import {AudioRecorderDialogComponent} from "./audio-recorder-dialog.component";
import {AudioRecorderModule} from "../../../shared/components/audio/audio-recorder-module";
import {MaterialModule} from "../../../material.module";

@NgModule({
    imports:      [ MaterialModule, BrowserModule, FormsModule, AudioRecorderModule],
    declarations: [ AudioQueryTermComponent, AudioRecorderDialogComponent ],
    exports:      [ AudioQueryTermComponent  ],
    entryComponents: [ AudioRecorderDialogComponent  ]
})

export class AudioQueryTermModule { }
github Gepardec / Hogarama / Hogajama / hogajama-angular-frontend / src / main / ionic / src / app / modules / shared / shared.module.ts View on Github external
import {NgModule} from '@angular/core';
import {UserNameComponent} from "./user-name/user-name.component";
import {IonicModule} from "@ionic/angular";

@NgModule({
  declarations: [
    UserNameComponent
  ],
    imports: [
        IonicModule
    ],
  exports: [UserNameComponent]
})
export class SharedModule {
}
github fabric8-ui / fabric8-ui / src / app / widgets / select-dropdown / select-dropdown.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { NgModule }  from '@angular/core';
import { ClickOutModule } from '../clickout/clickout.module';
import { SelectDropdownComponent } from './select-dropdown.component';

@NgModule({
  declarations: [ SelectDropdownComponent ],
  imports: [ CommonModule, ClickOutModule ],
  exports: [ SelectDropdownComponent ]
})
export class SelectDropdownModule { }
github trimox / angular-mdc-web / packages / checkbox / checkbox-module.ts View on Github external
import {NgModule} from '@angular/core';

import {MdcFormFieldModule} from '@angular-mdc/web/form-field';
import {MdcCheckbox} from './checkbox';

@NgModule({
  imports: [MdcFormFieldModule],
  exports: [
    MdcFormFieldModule,
    MdcCheckbox
  ],
  declarations: [MdcCheckbox]
})
export class MdcCheckboxModule { }
github Hub-of-all-Things / Rumpel / src / app / profiles / profiles.module.ts View on Github external
* Written by Augustinas Markevicius  2016
 */

import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { SharedModule } from '../shared/shared.module';
import { CustomAngularMaterialModule } from '../core/custom-angular-material.module';

import { TileProfileComponent } from './tile-profile/tile-profile.component';
import { ProfileComponent } from './profile/profile.component';
import { PrivacyToggleHelperComponent } from './privacy-toggle-helper/privacy-toggle-helper.component';

import { ProfilesService } from './profiles.service';

@NgModule({
    imports: [ SharedModule, FormsModule, ReactiveFormsModule, CustomAngularMaterialModule ],
    declarations: [ TileProfileComponent, ProfileComponent, PrivacyToggleHelperComponent ],
    providers: [ ProfilesService ],
    exports: [ TileProfileComponent ]
})
export class ProfilesModule {}
github ng-alain / delon / src / app / shared / json-schema / json-schema.module.ts View on Github external
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared.module';

import { DelonFormModule, WidgetRegistry } from '@delon/form';
import { MarkdownWidget } from '../../../../packages/form/widgets-third/markdown/markdown.widget';
import { TinymceWidget } from '../../../../packages/form/widgets-third/tinymce/tinymce.widget';
import { UeditorWidget } from '../../../../packages/form/widgets-third/ueditor/ueditor.widget';

export const SCHEMA_THIRDS_COMPONENTS = [TinymceWidget, UeditorWidget, MarkdownWidget];

@NgModule({
  declarations: SCHEMA_THIRDS_COMPONENTS,
  entryComponents: SCHEMA_THIRDS_COMPONENTS,
  imports: [SharedModule, DelonFormModule.forRoot()],
  exports: [...SCHEMA_THIRDS_COMPONENTS],
})
export class JsonSchemaModule {
  constructor(widgetRegistry: WidgetRegistry) {
    widgetRegistry.register(TinymceWidget.KEY, TinymceWidget);
    widgetRegistry.register(UeditorWidget.KEY, UeditorWidget);
    widgetRegistry.register(MarkdownWidget.KEY, MarkdownWidget);
  }
}