This repository contains the source code of the UI for NativeScript samples application demonstrating the Angular 2.0 directives. The repository does not contain the source code of UI for NativeScript itself but rather uses the npm package of nativescript-telerik-ui-pro
or nativescript-telerik-ui
.
The master
branch contains code currently under development and is not meant to be used with the officially released version of NativeScript UI.
The release
branch is the default one and is tested with the latest NativeScript UI version available.
##Overview The UI for NativeScript samples app resides in the sdkAngular folder at root repository level. The folder has a standard NativeScript application structure as described in this article. The source code of the samples resides in the folders named after each component available in UI for NativeScript. The currently available components are:
- Calendar
- Chart
- DataForm
- ListView
- SideDrawer
Make sure you are using NativeScript 2.0+. To see which version of NativeScript you are currently using, type tns --version
in the console.
Steps to run the sample:
cd sdkAngular
tns run android
ortns emulate ios
For more information about releases, features and breaking changes you can check out the release notes section in the online documentation: Telerik UI for NativeScript release notes
The project takes advantage of the codelyzer library and its set of tslint rules for static code analysis of the NativeScript + Angular 2 TypeScript project. In order to enable the codelyzer in Visual Studio Code you need to:
- Install tslint globally
npm install -g tslint typescript
- Install tslint extension in VS code IDE by running the
ext install tslint
- Add the
"tslint.rulesDirectory": "./node_modules/codelyzer"
to your Visual Studio Code "User Settings" (settings.json)