- NativeScript for Angular Mobile Development
- Nathan Walker Nathanael J. Anderson
- 152字
- 2021-07-02 18:41:48
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:
- 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 { }
- 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 { }
推薦閱讀
- Python數據分析基礎
- Java應用開發與實踐
- 深度學習:算法入門與Keras編程實踐
- ArcGIS By Example
- 軟件測試技術指南
- Linux Device Drivers Development
- 劍指Java:核心原理與應用實踐
- RSpec Essentials
- Illustrator CC平面設計實戰從入門到精通(視頻自學全彩版)
- C++程序設計教程(第2版)
- 3D Printing Designs:Octopus Pencil Holder
- Unity與C++網絡游戲開發實戰:基于VR、AI與分布式架構
- Scratch超人漫游記:創意程序設計:STEAM創新教育指南
- Test-Driven Java Development(Second Edition)
- Java Web開發系統項目教程