| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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
Clone/Download the repo then edit app.ts inside /src/app/app.ts
# clone our repo
$ git clone https://github.com/preboot/angular2-universal-windows-app.git my-app
# change directory to your app
$ cd my-app
# install the dependencies with npm
$ npm install
# start the build watch
$ npm startFirst 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.
What you need to run this app:
After you have installed all dependencies you can now run the app with:
npm startIt 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).
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.
Just install the lib and import the css files in vendor.ts. For example this is how to do it with bootstrap:
npm install bootstrap@4.0.0 --saveAnd in vendor.ts add the following:
import 'bootstrap/dist/css/bootstrap.css';To take full advantage of TypeScript with autocomplete you would have to use an editor with the correct TypeScript plugins.
We have good experience using these editors:
| Back | FazBrowse Home | New Git URL |