- 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 { }
推薦閱讀
- Learning Cython Programming
- Android應用程序開發與典型案例
- 基于Java技術的Web應用開發
- Apache Spark 2 for Beginners
- 面向STEM的Scratch創新課程
- Expert Android Programming
- QGIS By Example
- Getting Started with Laravel 4
- PHP編程基礎與實例教程
- Mastering C++ Multithreading
- 零基礎學Kotlin之Android項目開發實戰
- 深度學習原理與PyTorch實戰(第2版)
- 創意UI:Photoshop玩轉APP設計
- Spring 5 Design Patterns
- Spark技術內幕:深入解析Spark內核架構設計與實現原理