Install Node: https://nodejs.org/en/download/
npm install
npm install -g jspm
jspm install
npm install -g live-server
cd app
live-server
This branch contains the same tutorial application created in master and the es5 branch... but this branch implements the application using JSPM and ES6.
Above is a snaphot of the Starter-App with a Master-Detail layout: showing a list of users (left) and a user detail view (right).
There are no tutorial steps in this branch.
Rather the finished application is published here for comparison and learning purposes.
This sample application is purposed as both a learning tool and a skeleton application for a typical AngularJS Material ES6 web app: comprised of a Side navigation area and a content area. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.
The illustration below shows how we planned the layout and identified the primary components that will be used in the Starter ap:
![plancomponents2](https://cloud.githubusercontent.com/assets/210413/6444676/c247c8f8-c0c4-11e4-8206-208f55cbceee.png)
Note: that container #2 (above) is a simple
<div>
container and not an Angular Material component.
- - -
These application use jspm.io: package manager for SystemJS which is built on top of the dynamic ES6 module loader. This allows developers to load any module format (ES6, CommonJS, AMD, and globals).
After you have cloned the repository, you should execute the following commands:
npm install jspm -g
jspm install
Since web application uses jspm with Angular-Material:
- In the HTML, we only load the System loader and the configuration module
Notice no stylesheets are loaded here... they are injected later upon demand
- Configure the system loader to laod the app/boot module.
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>Angular Material - Starter App ES6</title>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:400,700'>
<style type="text/css">
/**
* Hide when Angular is not yet loaded and initialized
*/
[ng-cloak] {
display: none;
}
</style>
</head>
<body ng-cloak layout="column">
<div ng-include="'src/users/view/browseUsers.html'"
layout="column" flex tabIndex="-1" role="main" >
</div>
<script src="./jspm_packages/system.js" type="text/javascript"></script>
<script src="./config.js" type="text/javascript"></script>
<script type="text/javascript">
System
.import('app/boot')
.catch( console.error.bind(console) ); // make sure any errors print to console
</script>
</body>