Book Image

NativeScript for Angular Mobile Development

By : Anderson, Nathan Walker
Book Image

NativeScript for Angular Mobile Development

By: Anderson, Nathan Walker

Overview of this book

NativeScript is an open source framework that is built by Progress in order to build truly native mobile apps with TypeScript, JavaScript or just Angular which is an open source framework built by Google that offers declarative templates, dependency injection, and fully featured modules to build rich applications. Angular’s versatile view handling architecture allows your views to be rendered as highly performant UI components native to iOS and Android mobile platforms. This decoupling of the view rendering layer in Angular combined with the power of native APIs with NativeScript have together created the powerful and exciting technology stack of NativeScript for Angular. This book focuses on the key concepts that you will need to know to build a NativeScript for Angular mobile app for iOS and Android. We’ll build a fun multitrack recording studio app, touching on powerful key concepts from both technologies that you may need to know when you start building an app of your own. The structure of the book takes the reader from a void to a deployed app on both the App Store and Google Play, serving as a reference guide and valuable tips/tricks handbook. By the end of this book, you’ll know majority of key concepts needed to build a successful NativeScript for Angular app.
Table of Contents (17 chapters)
13
Integration Testing with Appium

Our first view via component building

If we look at our sketch from Chapter 1, Get into Shape with @NgModule, we can see a header at the top of the app, which will contain our app title with the record button to the right. We also see a listing of tracks with some player controls at the bottom. We can break these key elements of our UI design into essentially three primary components. One component is already provided by the NativeScript framework, the ActionBar, which we will use to represent the top header. 

NativeScript provides many rich view components to build our UI. The markup is not HTML but rather XML with an .html extension, which may seem unusual. The reason the .html extension is used for XML view templates with NativeScript for Angular is that the custom renderer (https://github.com/NativeScript/nativescript-angular) uses a DOM adapter...