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

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 { }
主站蜘蛛池模板: 南阳市| 中阳县| 龙门县| 顺义区| 兰溪市| 鸡西市| 平顺县| 双柏县| 岳阳市| 南召县| 延川县| 谷城县| 伊吾县| 耒阳市| 浮梁县| 金秀| 阳江市| 九江县| 屏山县| 锡林郭勒盟| 乐东| 海城市| 靖安县| 汤原县| 耒阳市| 毕节市| 和林格尔县| 河北省| 义马市| 谢通门县| 凤冈县| 宽甸| 兴城市| 肇州县| 三河市| 宝坻区| 聂拉木县| 拉萨市| 托里县| 河间市| 裕民县|