GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - digideskio/nativescript-angular: Integrating NativeScript with Angular 2

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

722 Commits
722 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
build/travis-scripts
build/travis-scripts
 
 
nativescript-angular
nativescript-angular
 
 
ng-sample
ng-sample
 
 
startup-test
startup-test
 
 
tests
tests
 
 
typings
typings
 
 
web
web
 
 
.ctags-exclude
.ctags-exclude
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
NativeScript-dependencies.md
NativeScript-dependencies.md
 
 
README.md
README.md
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Build Status

Integrating NativeScript with Angular 2.

Running locally

Prerequisites

Install your native toolchain and NativeScript as described in the docs:

https://docs.nativescript.org/setup/quick-setup

Install dependencies

$ npm install -g gulp

Then install the needed NPM packages:

$ cd nativescript-angular
$ npm install

Run the sample application (ng-sample)

Install NPM packages (use the local copy of nativescript-angular):

$ cd ng-sample
$ npm install
$ npm install ../nativescript-angular

Start the app:

$ tns run android
$ tns run ios

(Optional) Webpack bundling

Install the webpack tool:

$ npm install -g webpack

Enable the webpack hook by setting the WEBPACK_BUILD environment variable. You can do it with a single command on OSX/Linux using:

$ env WEBPACK_BUILD=1 tns run android

Running the tests

Install NPM packages (use the local copy of nativescript-angular):

$ cd tests
$ npm install
$ npm install ../nativescript-angular

Start test run:

$ tns test ios --emulator
$ tns test android --emulator

Developer workflow:

Setup:

Use npm link to link nativescript-angular in tests and ng-sample progects:

cd nativescript-angular
npm link
cd ../ng-sample
npm link nativescript-angular
cd ../tests
npm link nativescript-angular

Work

  1. Make changes to the test, ng-sample projects or in nativescript-angular folder.
  2. Run the tests or ng-sample using as shown above.

Watch the video explaining Angular 2 and NativeScript

NativeScript session on AngularConnect conference

Explore the examples

The ng-sample app is meant for testing stuff while developing the renderer code, and isn't the best example out there. You can take a look at these sample apps that use the published builds from npm:

  • Hello world starter
  • TodoMVC sample implementation

Known issues

  1. There are certain issues with the Parse5DomAdapter and we'll likely need to provide our own later on:
  • Self-closing elements (<Label text="Name" /><Button text="Save" />) get parsed wrong (in this case Button gets parsed as a Label child.

About

Integrating NativeScript with Angular 2

t.co/6PRfmyUkJd

Resources

Readme
License

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.