- 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 { }
推薦閱讀
- Kali Linux Web Penetration Testing Cookbook
- ReSharper Essentials
- MongoDB for Java Developers
- Magento 2 Theme Design(Second Edition)
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- Python Web數據分析可視化:基于Django框架的開發實戰
- Visual Basic程序設計實踐教程
- 深入實踐Kotlin元編程
- Java Web從入門到精通(第2版)
- Hands-On Robotics Programming with C++
- Java 9 with JShell
- UML基礎與Rose建模實用教程(第三版)
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- Building Microservices with .NET Core 2.0(Second Edition)
- 區塊鏈原理、架構與應用(第2版)