GithubHelp home page GithubHelp logo

jkuri / nativescript-angular-web-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nathanwalker/nativescript-angular-web-components

0.0 3.0 0.0 50.87 MB

Experimental: Render NativeScript views on the web.

TypeScript 75.98% JavaScript 11.88% CSS 5.95% HTML 6.19%

nativescript-angular-web-components's Introduction

Render NativeScript views on the web

To Contribute, read this.

Virtual Insanity with NativeScript Views: Blurred lines with {N} + Angular 2

Jamiroquai

Futures made of virtual insanity now
Always seem to, be governed by this love we have
For useless, twisting, our new technology
Oh, now there is no sound for we all live underground

  • Jamiroquai

We all love to twist our technology, sometimes motivated by useful objectives and other times for useless fun. But what if that useless fun led to something useful?

Unless you truly have been living underground where there may be no sound, you have probably heard of NativeScript, the open source cross-platform framework for building native apps using JavaScript, CSS, and XML.

Blah, blah, blah, right? Let’s twist things up a bit.

What if we could use NativeScript views to build web apps? Wait, huh?

What if you had invested resources and time into building that beautiful native mobile app your clients love with NativeScript and find yourself scratching your head thinking "How could we get this awesome app on the web to help with reachability?"

Welcome to "futures made of virtual insanity"

Snapshot

That right there ^ is 1 view file using NativeScript XML which can be rendered in a NativeScript app AS WELL AS on the web.

No magic here, this project will allow your NativeScript views to be used directly on the web with Angular 2.

This creates a few opportunities to name a few:

  • Quickly prototype a web app from your NativeScript app
  • Ability to statically render web templates from a NativeScript (only) app
    • Say you have a NativeScript only mobile app but now want to build a web app based on it's features?
      • In the future, you could run your views through a compiler which would spit out html equivalents to begin developing your complimentary web app quickly
  • Interop/Reusability between NativeScript and web templates.
  • The ability to invert the rendering: Statically generate NativeScript view templates from HTML web templates to quickly bring a web app into the NativeScript world.

Some motivations behind this effort are explained here.

You can get involved with this effort and help shape it's direction by contributing, start with the issues listed here.

The jury is out on the insanity of it all.

Action

Goals

Interop/Reusability between NativeScript and web templates.

Why

  • Ability to statically render a web app from a NativeScript (only) app
    • Say you have a NativeScript only mobile app but now want to build a web app based on it's features
      • In the future, you could run your views through a compiler which would spit out html equivalents to begin developing your complimentary web app quickly
  • Expand platform delivery options for NativeScript apps
  • Broaden the horizons for what may be possible with NativeScript views

Current Status

Experimental.

What's next

  • Build out remaining NativeScript components as web components. See Issues.
  • Ability to render the inverse direction: Statically generate NativeScript view templates from HTML web templates to quickly bring a web app into the NativeScript world.

Background

NativeScript/NativeScript#1612

nativescript-angular-web-components's People

Contributors

nathanwalker avatar tjvantoll avatar angular-cli avatar

Watchers

James Cloos avatar Jan Kuri 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.