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

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 { }
主站蜘蛛池模板: 盐亭县| 宝丰县| 西平县| 渭源县| 中宁县| 贺兰县| 墨竹工卡县| 桂东县| 武宁县| 宣化县| 东乌| 吉首市| 潮安县| 龙泉市| 莱芜市| 徐水县| 南华县| 长海县| 武鸣县| 肃宁县| 双流县| 阿图什市| 浦江县| 绥江县| 焦作市| 凤冈县| 体育| 芜湖县| 丽水市| 隆德县| 玉树县| 鹤岗市| 江都市| 龙口市| 连州市| 米林县| 黄平县| 甘谷县| 同仁县| 犍为县| 蓝山县|