forked from PatrickJS/angular-webpack-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.ts
More file actions
39 lines (28 loc) · 1.11 KB
/
bootstrap.ts
File metadata and controls
39 lines (28 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var app = (<any>doc.querySelectorAll('app')[0]);
app.innerHTML = 'open up your Console with CMD+Option+I';
/*
* Intro:
*
* In ES6 we have a lot of new features added to JavaScript
* so let's go over a few of the features that we will see
* in Angular 2
* please consider using https://babeljs.io/repl
*/
console.log('----------ES6 variable declarations----------');
require('./1.variable-declarations');
console.log('---------------Arrow Functions---------------');
require('./2.arrow-functions');
console.log('----------------Destructuring----------------');
require('./3.destructuring');
console.log('---------------Template String---------------');
require('./4.template-string');
console.log('----------------Rest Arguments--------------');
require('./5.rest-arguments');
console.log('---------------Spread Arguments--------------');
require('./6.spread-arguments');
console.log('---------------------Class-------------------');
require('./7.class');
console.log('------------Enhanced Object Literals---------');
require('./8.enhanced-object-literals');
// ES6 Modules
// www.2ality.com/2014/09/es6-modules-final.html