54 lines
2.2 KiB
TypeScript
54 lines
2.2 KiB
TypeScript
// (C) Copyright 2015 Martin Dougiamas
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { CoreCourseProvider } from './providers/course';
|
|
import { CoreCourseHelperProvider } from './providers/helper';
|
|
import { CoreCourseFormatDelegate } from './providers/format-delegate';
|
|
import { CoreCourseModuleDelegate } from './providers/module-delegate';
|
|
import { CoreCourseModulePrefetchDelegate } from './providers/module-prefetch-delegate';
|
|
import { CoreCourseOptionsDelegate } from './providers/options-delegate';
|
|
import { CoreCourseFormatDefaultHandler } from './providers/default-format';
|
|
import { CoreCourseModuleDefaultHandler } from './providers/default-module';
|
|
import { CoreCourseFormatSingleActivityModule } from './formats/singleactivity/singleactivity.module';
|
|
import { CoreCourseFormatSocialModule } from './formats/social/social.module';
|
|
import { CoreCourseFormatTopicsModule } from './formats/topics/topics.module';
|
|
import { CoreCourseFormatWeeksModule } from './formats/weeks/weeks.module';
|
|
|
|
// List of providers (without handlers).
|
|
export const CORE_COURSE_PROVIDERS: any[] = [
|
|
CoreCourseProvider,
|
|
CoreCourseHelperProvider,
|
|
CoreCourseFormatDelegate,
|
|
CoreCourseModuleDelegate,
|
|
CoreCourseModulePrefetchDelegate,
|
|
CoreCourseOptionsDelegate
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [
|
|
CoreCourseFormatSingleActivityModule,
|
|
CoreCourseFormatTopicsModule,
|
|
CoreCourseFormatWeeksModule,
|
|
CoreCourseFormatSocialModule
|
|
],
|
|
providers: CORE_COURSE_PROVIDERS.concat([
|
|
CoreCourseFormatDefaultHandler,
|
|
CoreCourseModuleDefaultHandler
|
|
]),
|
|
exports: []
|
|
})
|
|
export class CoreCourseModule {}
|