官术网_书友最值得收藏!

Player and recorder modules

Let's create the shell of our two main feature modules. Take note that we also add NativeScriptModule to the imports of both of the following modules:

  1. PlayerModule: It will provide player-specific services and components that will be usable whether the user is authenticated or not. 

Let's create app/modules/player/player.module.ts:

// nativescript
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
// angular
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';

@NgModule({
imports: [ NativeScriptModule ]
schemas: [ NO_ERRORS_SCHEMA ]
})
export class PlayerModule { }
  1. RecorderModule: This will provide recording-specific services and components that will only be loaded if the user is authenticated and enters the record mode for the first time.

Let's create app/modules/recorder/recorder.module.ts:

// nativescript
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';

// angular
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';

@NgModule({
imports: [ NativeScriptModule ],
schemas: [ NO_ERRORS_SCHEMA ]
})
export class RecorderModule { }
主站蜘蛛池模板: 平果县| 综艺| 上犹县| 浦江县| 财经| 游戏| 永安市| 波密县| 乌海市| 江北区| 沙雅县| 吕梁市| 资阳市| 中超| 托克逊县| 博湖县| 迭部县| 左云县| 东光县| 新平| 叙永县| 北碚区| 新密市| 城口县| 呈贡县| 温泉县| 南川市| 滕州市| 大兴区| 青铜峡市| 石渠县| 泸定县| 商河县| 壶关县| 兴仁县| 沾化县| 府谷县| 德昌县| 营口市| 革吉县| 嘉荫县|