Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
NativeScript for Angular Mobile Development

You're reading from   NativeScript for Angular Mobile Development Creating dynamic mobile apps for iOS and Android

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781787125766
Length 392 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Nathan Walker Nathan Walker
Author Profile Icon Nathan Walker
Nathan Walker
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Get Into Shape with @NgModule 2. Feature Modules FREE CHAPTER 3. Our First View via Component Building 4. A prettier view with CSS 5. Routing and Lazy Loading 6. Running the App on iOS and Android 7. Building the Multitrack Player 8. Building an Audio Recorder 9. Empowering Your Views 10. @ngrx/store + @ngrx/effects for State Management 11. Polish with SASS 12. Unit Testing 13. Integration Testing with Appium 14. Deployment Preparation with webpack Bundling 15. Deploying to the Apple App Store 16. Deploying to Google Play

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 ...

You have been reading a chapter from
NativeScript for Angular Mobile Development
Published in: Aug 2017
Publisher: Packt
ISBN-13: 9781787125766
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime