preboot/angular2-universal-windows-app

Name: angular2-universal-windows-app

Owner: Preboot

Description: An Universal Windows App (uwp) powered by Angular 2 !

Created: 2016-03-05 17:03:29.0

Updated: 2018-05-16 03:18:06.0

Pushed: 2016-03-05 18:02:37.0

Homepage: null

Size: 146

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

angular2-universal-windows-app

Dependency Status devDependency Status

An Universal Windows App (uwp) powered by Angular 2 !

This seed repo serves as an Angular 2 starter for anyone looking to get up and running with Angular 2 in an Universal Windows app fast. Using Webpack for building our files.

Warning: Make sure you're using the latest version of Node.js and NPM

Is Angular 2 Ready Yet?

Quick start

Clone/Download the repo then edit app.ts inside /src/app/app.ts

one our repo
t clone https://github.com/preboot/angular2-universal-windows-app.git my-app

ange directory to your app
 my-app

stall the dependencies with npm
m install

art the build watch
m start

install Visual Studio community edition

First download and do a custom install of Microsoft Visual Studio. Make sure that the Universal Windows App Development Tools are selected from the optional features list. Without these tools, you won't be able to create your Windows 10 universal apps.

Visual Studio parameters

Table of Contents

Getting Started

Dependencies

What you need to run this app:

Installing
Running the app

After you have installed all dependencies you can now run the app with:

start

It will build the files to the /dist folder and watch for changes.

Launch Visual Studio and open the file angular2-universal-windows-app.sln at the root of the project. Then launch the application with F5 (or using the menu debug > start debugging).

app

Developing
Build files

FAQ

How to include external angular 2 libraries ?

It's simple, just install the lib via npm and import it in your code when you need it. Don't forget that you need to configure some external libs in the bootstrap of your application.

How to include external css files such as bootstrap.css ?

Just install the lib and import the css files in vendor.ts. For example this is how to do it with bootstrap:

install bootstrap@4.0.0 --save

And in vendor.ts add the following:

rt 'bootstrap/dist/css/bootstrap.css';

TypeScript

To take full advantage of TypeScript with autocomplete you would have to use an editor with the correct TypeScript plugins.

Use a TypeScript-aware editor

We have good experience using these editors:

License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.