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

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 { }
主站蜘蛛池模板: 那曲县| 安远县| 确山县| 南江县| 仙居县| 屯门区| 舞钢市| 蓬安县| 桂阳县| 邢台市| 锦州市| 南澳县| 新龙县| 大名县| 承德县| 黄山市| 凤庆县| 大姚县| 四川省| 广安市| 吉安市| 修水县| 上蔡县| 新竹县| 苏尼特右旗| 黄大仙区| 酉阳| 皋兰县| 富蕴县| 大港区| 庄浪县| 郁南县| 应城市| 大庆市| 湟中县| 边坝县| 土默特左旗| 鄂托克前旗| 鹿邑县| 秦皇岛市| 泽库县|