How to use the @alfresco/adf-content-services.ContentModule.forChild function in @alfresco/adf-content-services

To help you get started, we’ve selected a few @alfresco/adf-content-services 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 Alfresco / alfresco-content-app / src / app / components / permissions / permissions.module.ts View on Github external
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Alfresco. If not, see .
 */

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CoreModule } from '@alfresco/adf-core';
import { ContentModule } from '@alfresco/adf-content-services';
import { NodePermissionsDialogComponent } from './permission-dialog/node-permissions.dialog';
import { PermissionsManagerComponent } from './permission-manager/permission-manager.component';

@NgModule({
  imports: [CommonModule, CoreModule.forChild(), ContentModule.forChild()],
  declarations: [PermissionsManagerComponent, NodePermissionsDialogComponent],
  exports: [PermissionsManagerComponent, NodePermissionsDialogComponent],
  entryComponents: [NodePermissionsDialogComponent]
})
export class AppPermissionsModule {}
github Alfresco / alfresco-content-app / src / app / components / search / search-results.module.ts View on Github external
import { ContentModule } from '@alfresco/adf-content-services';
import { SearchResultsComponent } from './search-results/search-results.component';
import { SearchResultsRowComponent } from './search-results-row/search-results-row.component';
import { SearchLibrariesResultsComponent } from './search-libraries-results/search-libraries-results.component';
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
import { AppToolbarModule } from '../toolbar/toolbar.module';
import { AppCommonModule } from '../common/common.module';
import { DirectivesModule } from '../../directives/directives.module';
import { AppLayoutModule } from '../layout/layout.module';
import { ContextMenuModule } from '../context-menu/context-menu.module';

@NgModule({
  imports: [
    CommonModule,
    CoreModule.forChild(),
    ContentModule.forChild(),
    AppCommonModule,
    AppInfoDrawerModule,
    AppToolbarModule,
    DirectivesModule,
    AppLayoutModule,
    ContextMenuModule
  ],
  declarations: [
    SearchResultsComponent,
    SearchLibrariesResultsComponent,
    SearchResultsRowComponent
  ],
  exports: [
    SearchResultsComponent,
    SearchLibrariesResultsComponent,
    SearchResultsRowComponent
github Alfresco / alfresco-content-app / src / app / components / layout / layout.module.ts View on Github external
import { AppLayoutComponent } from './app-layout/app-layout.component';
import { ContentModule } from '@alfresco/adf-content-services';
import { RouterModule } from '@angular/router';
import { AppSidenavModule } from '../sidenav/sidenav.module';
import { AppUploadingDialogModule } from '../upload-dialog/upload.module';
import { AppCommonModule } from '../common/common.module';
import { AppHeaderModule } from '../header/header.module';
import { HttpClientModule } from '@angular/common/http';
import { PageLayoutModule } from '@alfresco/aca-shared';

@NgModule({
  imports: [
    CommonModule,
    RouterModule,
    CoreModule.forChild(),
    ContentModule.forChild(),
    AppCommonModule,
    AppSidenavModule,
    AppHeaderModule,
    HttpClientModule,
    AppUploadingDialogModule,
    PageLayoutModule
  ],
  declarations: [AppLayoutComponent],
  exports: [AppLayoutComponent, PageLayoutModule]
})
export class AppLayoutModule {}
github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / social / social.module.ts View on Github external
import { CoreModule } from '@alfresco/adf-core';
import { ContentModule } from '@alfresco/adf-content-services';

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

@NgModule({
    imports: [
        CommonModule,
        RouterModule.forChild(routes),
        CoreModule.forChild(),
        ContentModule.forChild()
    ],
    declarations: [SocialComponent]
})
export class AppSocialModule {}
github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / content-node-selector / content-node-selector.module.ts View on Github external
import { CoreModule } from '@alfresco/adf-core';
import { ContentModule } from '@alfresco/adf-content-services';

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

@NgModule({
    imports: [
        CommonModule,
        RouterModule.forChild(routes),
        CoreModule.forChild(),
        ContentModule.forChild()
    ],
    declarations: [ContentNodeSelectorComponent]
})
export class AppContentNodeSelectorModule {}
github Alfresco / alfresco-content-app / src / app / components / trashcan / trashcan.module.ts View on Github external
{
    path: '',
    component: TrashcanComponent,
    data: {
      title: 'APP.BROWSE.TRASHCAN.TITLE',
      sortingPreferenceKey: 'trashcan'
    }
  }
];

@NgModule({
  imports: [
    CommonModule,
    CoreModule.forChild(),
    RouterModule.forChild(routes),
    ContentModule.forChild(),
    DirectivesModule,
    AppCommonModule,
    AppToolbarModule,
    ContextMenuModule,
    AppLayoutModule
  ],
  declarations: [TrashcanComponent],
  exports: [TrashcanComponent]
})
export class AppTrashcanModule {}
github Alfresco / alfresco-content-app / projects / aca-dev-tools / src / lib / aca-dev-tools.module.ts View on Github external
import { ExtensionService } from '@alfresco/adf-extensions';
import { MarkdownViewComponent } from './viewer/markdown-view/markdown-view.component';

export function components() {
    return [
        AcaDevToolsComponent,
        MarkdownViewComponent
    ];
}

@NgModule({
    imports: [
        FlexLayoutModule,
        CodeEditorModule.forChild(),
        CoreModule.forChild(),
        ContentModule.forChild()
    ],
    declarations: components(),
    exports: components(),
    entryComponents: components()
})
export class AcaDevToolsModule {
    constructor(extensions: ExtensionService) {
        extensions.setComponents({
            'dev.tools.component': AcaDevToolsComponent,
            'dev.tools.viewer.markdown': MarkdownViewComponent
        });
    }
}
github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / breadcrumb-demo / breadcrumb-demo.module.ts View on Github external
import { CommonModule } from '@angular/common';
import { ContentModule } from '@alfresco/adf-content-services';

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

@NgModule({
    imports: [
        CommonModule,
        CoreModule.forChild(),
        RouterModule.forChild(routes),
        ContentModule.forChild()
    ],
    declarations: [BreadcrumbDemoComponent],
    exports: [BreadcrumbDemoComponent]
})
export class AppBreadcrumbModule {}
github Alfresco / alfresco-content-app / src / app / components / search / search-input.module.ts View on Github external
* along with Alfresco. If not, see .
 */

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CoreModule } from '@alfresco/adf-core';
import { SearchInputComponent } from './search-input/search-input.component';
import { SearchInputControlComponent } from './search-input-control/search-input-control.component';
import { ContentModule } from '@alfresco/adf-content-services';
import { A11yModule } from '@angular/cdk/a11y';

@NgModule({
  imports: [
    CommonModule,
    CoreModule.forChild(),
    ContentModule.forChild(),
    A11yModule
  ],
  declarations: [SearchInputComponent, SearchInputControlComponent],
  exports: [SearchInputComponent, SearchInputControlComponent]
})
export class AppSearchInputModule {}
github Alfresco / alfresco-ng2-components / demo-shell / src / app / components / datatable / datatable.module.ts View on Github external
import { CoreModule } from '@alfresco/adf-core';
import { ContentModule } from '@alfresco/adf-content-services';

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

@NgModule({
    imports: [
        CommonModule,
        CoreModule.forChild(),
        RouterModule.forChild(routes),
        ContentModule.forChild()
    ],
    declarations: [DataTableComponent]
})
export class AppDataTableModule {}

@alfresco/adf-content-services

Alfresco ADF content services

Apache-2.0
Latest version published 1 month ago

Package Health Score

87 / 100
Full package analysis