- 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 { }
推薦閱讀
- Designing Machine Learning Systems with Python
- Redis Applied Design Patterns
- Mastering macOS Programming
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- BeagleBone Black Cookbook
- C語言程序設計上機指導與習題解答(第2版)
- Java Web開發就該這樣學
- 一步一步跟我學Scratch3.0案例
- Fastdata Processing with Spark
- PhoneGap 4 Mobile Application Development Cookbook
- Java從入門到精通(視頻實戰版)
- Java Web開發基礎與案例教程
- Unreal Engine 4 Game Development Essentials
- Python自動化開發實戰
- Real-time Web Application Development using Vert.x 2.0