Git Product home page Git Product logo

nativescript-angular's Introduction

Build Status

Integrating NativeScript with Angular.

Running locally

Prerequisites

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

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

Install dependencies

$ 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

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

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.

nativescript-angular's People

Contributors

chrisnicola avatar dtopuzov avatar erjangavalji avatar hamorphis avatar hdeshev avatar ivanbuhov avatar jasssonpet avatar leocaseiro avatar lfabreges avatar nathanwalker avatar ntrp avatar panayotcankov avatar pbartrina avatar sis0k0 avatar svetoslavtsenov avatar tzraikov avatar vakrilov avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.