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

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 { }
主站蜘蛛池模板: 凌海市| 依安县| 定襄县| 延庆县| 枣强县| 肇源县| 齐齐哈尔市| 疏勒县| 伽师县| 岳阳县| 无为县| 濮阳县| 永登县| 吉水县| 资溪县| 汝州市| 康乐县| 平阴县| 五台县| 黄梅县| 永平县| 淮南市| 昔阳县| 芜湖县| 马尔康县| 林州市| 晋中市| 鄂托克旗| 诸城市| 游戏| 视频| 鹤峰县| 张北县| 西宁市| 喜德县| 海晏县| 巍山| 永福县| 鄯善县| 吉首市| 木里|