diff --git a/gulpfile.js b/gulpfile.js
index 50ca975a39..1476231c6c 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -25,6 +25,8 @@ var globby = require("globby");
var treeKill = require("tree-kill");
var blc = require("broken-link-checker");
+var tslint = require('gulp-tslint');
+
// TODO:
// 1. Think about using runSequence
// 2. Think about using spawn instead of exec in case of long error messages.
@@ -45,6 +47,7 @@ var exampleZipper = require(path.resolve(TOOLS_PATH, '_example-zipper/exampleZip
var plunkerBuilder = require(path.resolve(TOOLS_PATH, 'plunker-builder/plunkerBuilder'));
var fsUtils = require(path.resolve(TOOLS_PATH, 'fs-utils/fsUtils'));
+
var _devguideShredOptions = {
examplesDir: path.join(DOCS_PATH, '_examples'),
fragmentsDir: path.join(DOCS_PATH, '_fragments'),
@@ -74,6 +77,7 @@ var _exampleBoilerplateFiles = [
'karma-test-shim.js',
'package.json',
'styles.css',
+ 'systemjs.config.js',
'tsconfig.json',
'tslint.json',
'typings.json',
@@ -498,6 +502,20 @@ gulp.task('_zip-examples', function() {
});
+// Linting
+
+gulp.task('lint', function() {
+ return gulp.src(['./public/docs/_examples/style-guide/ts/**/*.ts', '!./public/docs/_examples/style-guide/ts/**/*.avoid.ts'])
+ .pipe(tslint({
+ rulesDirectory: ['node_modules/codelyzer'],
+ configuration: require('./tslint.json')
+ }))
+ .pipe(tslint.report('prose', {
+ summarizeFailureOutput: true
+ }));
+});
+
+
// Helper functions
function harpCompile() {
diff --git a/harp.json b/harp.json
index 99e38bff18..aeeda7f949 100644
--- a/harp.json
+++ b/harp.json
@@ -286,7 +286,13 @@
"bio": "Chuck is a Software Engineer on the Angular team at Google. He is a programming language geek, UI framework and component library veteran, and has a passion for simplifying the task of programming. Before Google, he worked at Microsoft and Borland.",
"type": "Google"
},
-
+ "stephenfluin": {
+ "name": "Stephen Fluin",
+ "picture": "/resources/images/bios/stephenfluin.jpg",
+ "twitter": "stephenfluin",
+ "bio": "Stephen is a Developer Advocate working on the Angular team. Before joining Google, he was a Google Expert. Stephen loves to help enterprises use technology more effectively.",
+ "type": "Google"
+ },
"pawel": {
"name": "Pawel Kozlowski",
"picture": "/resources/images/bios/pawel.jpg",
diff --git a/package.json b/package.json
index e8267dcdec..91076fd867 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
"harp": "harp",
"live-server": "live-server",
"test-api-builder": "jasmine-node tools/api-builder",
-
"protractor": "protractor"
},
"repository": {
@@ -28,10 +27,11 @@
"devDependencies": {
"archiver": "^0.16.0",
"assert-plus": "^0.1.5",
- "broken-link-checker":"0.7.0",
+ "broken-link-checker": "0.7.0",
"browser-sync": "^2.9.3",
"canonical-path": "0.0.2",
"cross-spawn": "^2.1.0",
+ "codelyzer": "0.0.18",
"del": "^1.2.0",
"dgeni": "^0.4.0",
"dgeni-packages": "^0.11.1",
@@ -42,6 +42,7 @@
"gulp": "^3.5.6",
"gulp-env": "0.4.0",
"gulp-task-listing": "^1.0.1",
+ "gulp-tslint": "^4.3.5",
"gulp-util": "^3.0.6",
"gulp-watch": "^4.3.4",
"harp": "^0.20.3",
@@ -66,6 +67,7 @@
"protractor": "^3.0.0",
"q": "^1.4.1",
"tree-kill": "^1.0.0",
+ "tslint": "^3.2.2",
"typescript": "1.7.3",
"yargs": "^3.23.0"
},
diff --git a/public/_data.json b/public/_data.json
index 6427634fc8..cfa077a4a9 100644
--- a/public/_data.json
+++ b/public/_data.json
@@ -1,13 +1,12 @@
{
"index": {
"hero": "home",
- "title": "一个框架",
- "subtitle": "适用于手机与桌面"
+ "title": "一套框架,多个平台",
+ "subtitle": "同时适用手机与桌面"
},
"features": {
- "title": "特性与优点",
- "subtitle": "开发应用程序的强力特性"
+ "title": "特性与优点"
},
"contribute": {
@@ -17,8 +16,7 @@
},
"news": {
- "title": "新闻",
- "subtitle": "看看我们正在做什么"
+ "title": "新闻"
},
"events": {
@@ -29,5 +27,29 @@
"support": {
"title": "支持",
"subtitle": "从Angular社区获得支持"
+ },
+
+ "presskit": {
+ "title": "出版工具"
+ },
+
+ "books": {
+ "title": "书籍"
+ },
+
+ "training": {
+ "title": "培训"
+ },
+
+ "communities": {
+ "title": "社区"
+ },
+
+ "tooling": {
+ "title": "工具与库"
+ },
+
+ "all-resources": {
+ "title": "资源"
}
}
diff --git a/public/_includes/_footer.jade b/public/_includes/_footer.jade
index 065865dc59..5ef757ccba 100644
--- a/public/_includes/_footer.jade
+++ b/public/_includes/_footer.jade
@@ -8,46 +8,42 @@ else
- var styleguide = "/docs/ts/latest/styleguide.html"
.main-footer
- nav.background-silver.grid-fluid
+ nav.background-blue-grey-900.grid-fluid
.c3.main-footer-branding
.logo-inverse-large
- .c2
- h3.text-headline 库
+ .c3
+ h3.text-headline 资源
ul.text-body
- li Angular 2.0
- li Angular 1 for JS
- li Angular Material
- li AngularFire
+ // TODO: (ericjim) make a libraries page to showcase all angular 2 libraries
+ //li Libraries
+ li 关于
+ li 书籍与培训
+ li 工具与库
+ li 社区
+ li 出版工具
- .c2
- h3.text-headline 学习资源
-
- ul.text-body
- li 5分钟快速开始
- li 单步指南
- li 全部API
- li 资源
- li 设计文档 & 记录
-
- .c2
+ .c3
h3.text-headline 帮助
ul.text-body
+ li Stack Overflow
+ li Gitter
li Google Group
- li 聊天室
- li 报告BUG
+ li 报告问题
+ li
.c3
h3.text-headline 社区
ul.text-body
- li 官方博客
- li Google+
+ li Events
+ li Meetups
li Twitter
li GitHub
+ li Contribute
footer(class="background-steel")
diff --git a/public/_includes/_hero-home.jade b/public/_includes/_hero-home.jade
index 18970ea473..e6e428410d 100644
--- a/public/_includes/_hero-home.jade
+++ b/public/_includes/_hero-home.jade
@@ -3,10 +3,13 @@ header(class="background-sky")
h1.text-headline.hero-logo #{title}
#{subtitle}
.hero-cta
- a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain"
- md-button) 现在开始!
+ a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) Get Started
-.banner.is-centered
+.banner.banner-floaty
.banner-ng-annoucement
- h4 Angular的挑战赛 — 一次48小时的线上黑客马拉松就在2016年5月14~15日。
- a(href="https://www.angularattack.com/" target="_blank") 立即注册
+ div(class="banner-text")
+ p Watch the ng-conf Live Stream May 4th-6th.
+ p 观看 ng-conf 实时视频 May 4th-6th.
+ div(class="banner-button")
+ a(href="https://www.ng-conf.org/#/extended" target="_blank" class="button md-button") View Live Stream
+ a(href="https://www.ng-conf.org/#/extended" target="_blank" class="button md-button") 查看实时视频
diff --git a/public/_includes/_hero.jade b/public/_includes/_hero.jade
index 26c4ddd46b..53bf8fee5d 100644
--- a/public/_includes/_hero.jade
+++ b/public/_includes/_hero.jade
@@ -8,8 +8,9 @@ if current.path[4] && current.path[3] == 'api'
- var textFormat = 'is-standard-case'
header(class="hero background-sky")
- h1(class="hero-title text-display-1 #{textFormat}") #{headerTitle}
- if useBadges
+ div(class="inner-header")
+ h1(class="hero-title text-display-1 #{textFormat}") #{headerTitle}
+ if useBadges
span(class="badges")
if docType
span(class="status-badge").
diff --git a/public/_includes/_main-nav.jade b/public/_includes/_main-nav.jade
index 71cd401d91..256c2dca3f 100644
--- a/public/_includes/_main-nav.jade
+++ b/public/_includes/_main-nav.jade
@@ -10,9 +10,6 @@ md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5",scroll-y-off
ul(ng-class="appCtrl.showMainNav ? 'is-visible' : ''")
li.l-left 特性
li.l-left 文档
- li.l-left 关于
- li.l-left 贡献
- li.l-left 支持
- li.l-left 新闻
li.l-left 事件
- li.l-right.feedback-button feedback
+ li.l-left 新闻
+ li.l-right 立即开始!
diff --git a/public/_includes/_util-fns.jade b/public/_includes/_util-fns.jade
index 143489bf08..00288b6c6c 100644
--- a/public/_includes/_util-fns.jade
+++ b/public/_includes/_util-fns.jade
@@ -4,13 +4,20 @@ mixin includeShared(filePath, region)
- var newPath = translatePath(filePath, region);
!=partial(newPath)
-mixin makeExample(filePath, region, title, stylePatterns)
+mixin makeExample(_filePath, region, _title, stylePatterns)
+ - var filePath = adjustExamplePath ? adjustExamplePath(_filePath) : _filePath;
+ - var title = adjustExampleTitle ? adjustExampleTitle(_title) : _title;
- var language = attributes.language || getExtn(filePath);
- var frag = getFrag(filePath, region);
- var defaultFormat = frag.split('\n').length > 2 ? "linenums" : "";
- var format = attributes.format || defaultFormat;
+ - var avoid = !!attributes.avoid;
+
if (title)
- .example-title #{title}
+ if (avoid)
+ .example-title.avoid AVOID: #{title}
+ else
+ .example-title #{title}
code-example(language="#{language}" format="#{format}")
!= styleString(frag, stylePatterns)
@@ -37,9 +44,13 @@ mixin makeJson( filePath, jsonConfig, title, stylePatterns)
- var frag = getFrag(filePath, '');
- var json = unescapeHtml(frag);
- var jsonExtract = extractJson(json, jsonConfig);
+ - var avoid = !!attributes.avoid;
if (title)
- .example-title #{title}
+ if (avoid)
+ .example-title.avoid #{title}
+ else
+ .example-title #{title}
code-example(language="#{language}" format="#{format}")
if (jsonExtract == 'ERROR')
err 错误: 无法通过配置"#{jsonConfig.toString()}"解析JSON
diff --git a/public/all-resources.jade b/public/all-resources.jade
new file mode 100644
index 0000000000..1d6dfa6d0c
--- /dev/null
+++ b/public/all-resources.jade
@@ -0,0 +1,200 @@
+div
+ p(class="text-body") Would you like to be listed in this page? Fill out this form.
+ div(style="display: flex; justify-content: space-between; flex-wrap: wrap;")
+ div
+ h1 Books
+ div(class="resources")
+ h3 Packt Publishing
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/switching-angular-2") Switching to Angular 2
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/mastering-angular-2-components") Mastering Angular 2 Components
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-blueprints") Angular 2 Blueprints
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-example") Angular 2 By Examples
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/mastering-angular-2-components") Angular 2 Components
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/learning-angular-2-net-developers") Learning Angular 2 for .NET Developers
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-test-driven-development") Angular 2 Test-driven Development
+
+ h3 Manning Publications
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/angular-2-in-action") Angular 2 In Action
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/angular-2-development-with-typescript") Angular 2 Development with TypeScript
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/testing-angular-2-applications") Testing Angular 2 Applications
+
+ h3 O'Reilly Media
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="http://www.oreilly.com/pub/e/3693") Angular 2 Web Development with TypeScript
+ li(class="book")
+ a(class="title text-body" href="http://shop.oreilly.com/product/0636920051824.do") Migrating to Angular 2
+ li(class="book")
+ a(class="title text-body" href="http://shop.oreilly.com/product/9781785886201.do") Switching to Angular 2
+
+ h3 Self-published
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="http://ngcourse.rangle.io/") Rangle.io: ngCourse 2
+ li(class="book")
+ a(class="title text-body" href="https://www.ng-book.com/2/") ng-book 2
+ li(class="book")
+ a(class="title text-body" href="https://leanpub.com/angular2-book") Angular 2 Book
+ li(class="book")
+ a(class="title text-body" href="https://books.ninja-squad.com/angular2") Become a ninja with Angular 2
+ li(class="book")
+ a(class="title text-body" href="https://leanpub.com/practical-angular-2") Practical Angular 2
+
+ div
+ h1 Training
+ div(class="resources")
+ h3 Rangle.io
+ ul(class="publisher")
+ li(class="course")
+ a(class="title text-body" href="http://rangle.io/services/javascript-training/training-angular1-angular2-with-ngupgrade/") Angular 2 Online Training
+
+ h3 Pluralsight
+ ul(class="publisher")
+ li(class="course")
+ a(class="title text-body" href="https://www.pluralsight.com/courses/angular-2-first-look") Angular 2: First Look
+ li(class="course")
+ a(class="title text-body" href="https://www.pluralsight.com/courses/angular-2-getting-started") Angular 2: Getting Started
+
+ h3 Udemy
+ ul(class="publisher")
+ li
+ a(class="title text-body" href="https://www.udemy.com/the-complete-guide-to-angular-2/?utm_content=_._ag_angular%202_._ad_47395956109_._de_c_._dm__._lo_9061189_._&matchtype=b&gclid=CjwKEAjww9O3BRDp1tq0jIP023YSJAB0-j1S4bFN4tudrjzZO_-ABNAfFQJrhrKo7KX1AnV-8yjV-hoCRrDw_wcB&utm_medium=udemyads&k_clickid=dce13cd7-9844-44dc-9967-020275b637c9_408_GOOGLE_NEW-AW-PROS-TECH-Dev-angular-2-EN-ENG_._ci_756150_._sl_ENG_._vi_TECH_._sd_All_._la_EN_.__angular%202_%2Bangular%20%2B2_b_47395956109_c&utm_campaign=NEW-AW-PROS-TECH-Dev-angular-2-EN-ENG_._ci_756150_._sl_ENG_._vi_TECH_._sd_All_._la_EN_._&utm_source=adwords&utm_term=_._pl__._pd__._ti_kwd-68757357257_._kw_%2Bangular%20%2B2_._&pmtag=72bf13dc-329c-411c-b381-a6143735b9dc") The Complete Guide to Angular 2
+ li
+ a(class="title text-body" href="https://www.udemy.com/angular-2-tutorial-for-beginners/") Angular 2 With TypeScript for Beginners
+ li
+ a(class="title text-body" href="https://www.udemy.com/angular-2-tutorial-for-beginners/") Angular 2 Jumpstart with Typescript
+ li
+ a(class="title text-body" href="https://www.udemy.com/angular-2-fundamentals/") Angular 2 Fundamentals
+ li
+ a(class="title text-body" href="https://www.udemy.com/angular-2-master-class-with-alejandro-rangel/") Angular 2 Master Class
+ li
+ a(class="title text-body" href="https://www.udemy.com/introduction-to-angular2/") Angular 2 Demystified
+
+ h3 egghead.io
+ ul(class="publisher")
+ li
+ a(class="title text-body" href="https://egghead.io/technologies/angular2") Angular 2 videos
+
+ h3 Workshops & Onsite Training Vendors
+ ul(class="publisher")
+ li
+ a(class="title text-body" href="http://rangle.io/services/javascript-training/angular2-training/") Rangle.io
+ li
+ a(class="title text-body" href="http://oasisdigital.com/training") Oasis Digital
+ li
+ a(class="title text-body" href="http://thoughtram.io/") Thoughtram
+
+ div
+ h1 Tooling and Libraries
+ div(class="resources")
+ h3 Tooling
+ ul
+ li
+ a(class="text-body" href="https://augury.rangle.io/") Augury
+ li
+ a(class="text-body" href="https://github.com/angular/universal") Angular Universal
+ li
+ a(class="text-body" href="https://github.com/johnpapa/lite-server") Lite-server
+ li
+ a(class="text-body" href="https://github.com/mgechev/codelyzer") Codelyzer
+
+ h3 IDEs
+ ul
+ li
+ a(class="text-body" href="http://code.visualstudio.com/") Visual Studio Code
+ li
+ a(class="text-body" href="https://www.jetbrains.com/webstorm/") WebStorm
+ li
+ a(class="text-body" href="https://www.jetbrains.com/idea/") IntelliJ IDEA
+
+ h3 Data Libraries
+ ul
+ li
+ a(class="text-body" href="https://www.firebase.com/") Firebase
+ li
+ a(class="text-body" href="https://www.meteor.com/") Meteor
+ li
+ a(class="text-body" href="http://mean.io/") MEAN
+
+ h3 UI Components
+ ul
+ li
+ a(class="text-body" href="https://github.com/angular/material2") Angular Material 2
+ li
+ a(class="text-body" href="http://www.primefaces.org/primeng/") Prime Faces
+ li
+ a(class="text-body" href="http://www.telerik.com/blogs/what-to-expect-in-2016-for-kendo-ui-with-angular-2-and-more") Kendo UI
+ li
+ a(class="text-body" href="http://ng-lightning.github.io/ng-lightning/") ng-lightening
+ li
+ a(class="text-body" href="http://wijmo.com/products/wijmo-5/") Wijmo
+ li
+ a(class="text-body" href="https://angular-ui.github.io/bootstrap/") Bootstrap UI
+ li
+ a(class="text-body" href="https://vaadin.com/home") Vaadin
+
+ h3 Cross-Platform Development
+ ul
+ li
+ a(class="text-body" href="https://github.com/NativeScript/nativescript-angular") NativeScript
+ li
+ a(class="text-body" href="http://angular.github.io/react-native-renderer/") React Native
+ li
+ a(class="text-body" href="http://ionicframework.com/docs/v2/") Ionic
+ li
+ a(class="text-body" href="http://github.com/angular/angular-electron") Electron
+ li
+ a(class="text-body" href="http://github.com/preboot/angular2-universal-windows-app") Windows (UWP)
+
+ div
+ h1 Communities
+ div(class="resources")
+ p(class="text-body") Would you like to be listed in this page? Fill out this form.
+
+ h3 Podcasts
+ ul(class="podcasts")
+ li(class="podcast")
+ a(class="text-body" href="https://angularair.com/") AngularAir
+ li(class="podcast")
+ a(class="text-body" href="https://javascriptair.com/") JavaScript Air
+ li(class="podcast")
+ a(class="text-body" href="https://devchat.tv/adventures-in-angular") Adventures in Angular
+
+
+ h3 Communities
+ ul(class="communities")
+ li(class="community")
+ a(class="text-body" href="http://angularbeers.org/") Angular Beers
+ li(class="community")
+ a(class="text-body" href="http://angularcamp.org/") Angular Camp
+ li(class="community")
+ a(class="text-body" href="http://www.meetup.com/find/?allMeetups=false&keywords=angularjs&radius=Infinity&userFreeform=94043&gcResults=Mountain+View%2C+CA+94043%2C+USA%3AUS%3ACalifornia%3ASanta+Clara+County%3AMountain+View%3Anull%3A94043%3A37.428434%3A-122.07238159999997&change=yes&sort=default") Angular Meetups
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/books.jade b/public/books.jade
new file mode 100644
index 0000000000..b9a60d089a
--- /dev/null
+++ b/public/books.jade
@@ -0,0 +1,54 @@
+div(class="resources")
+ p(class="text-body") Would you like to be listed in this page? Fill out this form.
+
+ h3 Packt Publishing
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/switching-angular-2") Switching to Angular 2
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/mastering-angular-2-components") Mastering Angular 2 Components
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-blueprints") Angular 2 Blueprints
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-example") Angular 2 By Examples
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/mastering-angular-2-components") Angular 2 Components
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/learning-angular-2-net-developers") Learning Angular 2 for .NET Developers
+ li(class="book")
+ a(class="title text-body" href="https://www.packtpub.com/web-development/angular-2-test-driven-development") Angular 2 Test-driven Development
+
+ h3 Manning Publications
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/angular-2-in-action") Angular 2 In Action
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/angular-2-development-with-typescript") Angular 2 Development with TypeScript
+ li(class="book")
+ a(class="title text-body" href="https://www.manning.com/books/testing-angular-2-applications") Testing Angular 2 Applications
+
+ h3 O'Reilly Media
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="http://www.oreilly.com/pub/e/3693") Angular 2 Web Development with TypeScript
+ li(class="book")
+ a(class="title text-body" href="http://shop.oreilly.com/product/0636920051824.do") Migrating to Angular 2
+ li(class="book")
+ a(class="title text-body" href="http://shop.oreilly.com/product/9781785886201.do") Switching to Angular 2
+
+ h3 Self-published
+ ul(class="publisher")
+ li(class="book")
+ a(class="title text-body" href="http://ngcourse.rangle.io/") Rangle.io: ngCourse 2
+ li(class="book")
+ a(class="title text-body" href="https://www.ng-book.com/2/") ng-book 2
+ li(class="book")
+ a(class="title text-body" href="https://leanpub.com/angular2-book") Angular 2 Book
+ li(class="book")
+ a(class="title text-body" href="https://books.ninja-squad.com/angular2") Become a ninja with Angular 2
+ li(class="book")
+ a(class="title text-body" href="https://leanpub.com/practical-angular-2") Practical Angular 2
+
+
+
+
diff --git a/public/communities.jade b/public/communities.jade
new file mode 100644
index 0000000000..a6b5c0dcf4
--- /dev/null
+++ b/public/communities.jade
@@ -0,0 +1,26 @@
+div(class="resources")
+ p(class="text-body") Would you like to be listed in this page? Fill out this form.
+
+ h3 Podcasts
+ ul(class="podcasts")
+ li(class="podcast")
+ a(class="text-body" href="https://angularair.com/") AngularAir
+ li(class="podcast")
+ a(class="text-body" href="https://javascriptair.com/") JavaScript Air
+ li(class="podcast")
+ a(class="text-body" href="https://devchat.tv/adventures-in-angular") Adventures in Angular
+
+
+ h3 Communities
+ ul(class="communities")
+ li(class="community")
+ a(class="text-body" href="http://angularbeers.org/") Angular Beers
+ li(class="community")
+ a(class="text-body" href="http://angularcamp.org/") Angular Camp
+ li(class="community")
+ a(class="text-body" href="http://www.meetup.com/find/?allMeetups=false&keywords=angularjs&radius=Infinity&userFreeform=94043&gcResults=Mountain+View%2C+CA+94043%2C+USA%3AUS%3ACalifornia%3ASanta+Clara+County%3AMountain+View%3Anull%3A94043%3A37.428434%3A-122.07238159999997&change=yes&sort=default") Angular Meetups
+
+
+
+
+
diff --git a/public/docs/_examples/.gitignore b/public/docs/_examples/.gitignore
index 07614a46ec..a7b60352e4 100644
--- a/public/docs/_examples/.gitignore
+++ b/public/docs/_examples/.gitignore
@@ -15,7 +15,12 @@ tslint.json
wallaby.js
npm-debug*.
protractor.config.js
+systemjs.config.js
_test-output
_temp
+**/ts/**/*.js
+**/ts-snippets/**/*.js
+**/ts/**/*.d.ts
!**/*e2e-spec.js
+!systemjs.config.1.js
diff --git a/public/docs/_examples/architecture/dart/lib/hero_list_component.html b/public/docs/_examples/architecture/dart/lib/hero_list_component.html
index 539ef5fdd5..e493e949fb 100644
--- a/public/docs/_examples/architecture/dart/lib/hero_list_component.html
+++ b/public/docs/_examples/architecture/dart/lib/hero_list_component.html
@@ -1,7 +1,7 @@
Hero List
-
+
{{hero.name}}
diff --git a/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html b/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html
index 8673962169..7a08bd2f8b 100644
--- a/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html
+++ b/public/docs/_examples/architecture/dart/lib/hero_list_component_1.html
@@ -5,6 +5,6 @@
-
...
+
...
diff --git a/public/docs/_examples/architecture/dart/pubspec.yaml b/public/docs/_examples/architecture/dart/pubspec.yaml
index ae0dd30e42..9418b2ec76 100644
--- a/public/docs/_examples/architecture/dart/pubspec.yaml
+++ b/public/docs/_examples/architecture/dart/pubspec.yaml
@@ -5,7 +5,7 @@ version: 0.0.1
environment:
sdk: '>=1.13.0 <2.0.0'
dependencies:
- angular2: 2.0.0-beta.15
+ angular2: 2.0.0-beta.17
browser: ^0.10.0
dart_to_js_script_rewriter: ^1.0.1
transformers:
diff --git a/public/docs/_examples/architecture/ts/.gitignore b/public/docs/_examples/architecture/ts/.gitignore
deleted file mode 100644
index 2cb7d2a2e9..0000000000
--- a/public/docs/_examples/architecture/ts/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-**/*.js
diff --git a/public/docs/_examples/architecture/ts/app/app.component.ts b/public/docs/_examples/architecture/ts/app/app.component.ts
index 144990a86e..409fde3aa3 100644
--- a/public/docs/_examples/architecture/ts/app/app.component.ts
+++ b/public/docs/_examples/architecture/ts/app/app.component.ts
@@ -1,5 +1,5 @@
// #docregion import
-import {Component} from 'angular2/core';
+import {Component} from '@angular/core';
// #enddocregion import
import {HeroListComponent} from './hero-list.component';
import {SalesTaxComponent} from './sales-tax.component';
@@ -14,4 +14,4 @@ import {SalesTaxComponent} from './sales-tax.component';
})
// #docregion export
export class AppComponent { }
-// #enddocregion export
\ No newline at end of file
+// #enddocregion export
diff --git a/public/docs/_examples/architecture/ts/app/backend.service.ts b/public/docs/_examples/architecture/ts/app/backend.service.ts
index 0600fee6e0..2170c88758 100644
--- a/public/docs/_examples/architecture/ts/app/backend.service.ts
+++ b/public/docs/_examples/architecture/ts/app/backend.service.ts
@@ -1,4 +1,4 @@
-import {Injectable, Type} from 'angular2/core';
+import {Injectable, Type} from '@angular/core';
import {Logger} from './logger.service';
import {Hero} from './hero';
diff --git a/public/docs/_examples/architecture/ts/app/hero-detail.component.ts b/public/docs/_examples/architecture/ts/app/hero-detail.component.ts
index d8c7bed1a8..2a8d23e392 100644
--- a/public/docs/_examples/architecture/ts/app/hero-detail.component.ts
+++ b/public/docs/_examples/architecture/ts/app/hero-detail.component.ts
@@ -1,4 +1,4 @@
-import {Component, Input} from 'angular2/core';
+import {Component, Input} from '@angular/core';
import {Hero} from './hero';
@Component({
@@ -7,5 +7,5 @@ import {Hero} from './hero';
directives: [HeroDetailComponent]
})
export class HeroDetailComponent {
- @Input() hero:Hero;
-}
\ No newline at end of file
+ @Input() hero: Hero;
+}
diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.1.html b/public/docs/_examples/architecture/ts/app/hero-list.component.1.html
index 7fbd8f22ac..d4d6b905fa 100644
--- a/public/docs/_examples/architecture/ts/app/hero-list.component.1.html
+++ b/public/docs/_examples/architecture/ts/app/hero-list.component.1.html
@@ -6,7 +6,7 @@
-
+
diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.html b/public/docs/_examples/architecture/ts/app/hero-list.component.html
index a3de7f2950..f3c92b3141 100644
--- a/public/docs/_examples/architecture/ts/app/hero-list.component.html
+++ b/public/docs/_examples/architecture/ts/app/hero-list.component.html
@@ -2,7 +2,7 @@
Hero List
Pick a hero from the list
-
+
{{hero.name}}
diff --git a/public/docs/_examples/architecture/ts/app/hero-list.component.ts b/public/docs/_examples/architecture/ts/app/hero-list.component.ts
index 7d4c3e152d..686775eff5 100644
--- a/public/docs/_examples/architecture/ts/app/hero-list.component.ts
+++ b/public/docs/_examples/architecture/ts/app/hero-list.component.ts
@@ -1,5 +1,5 @@
// #docplaster
-import {Component, OnInit} from 'angular2/core';
+import {Component, OnInit} from '@angular/core';
import {Hero} from './hero';
import {HeroDetailComponent} from './hero-detail.component';
import {HeroService} from './hero.service';
@@ -24,13 +24,13 @@ export class HeroesComponent { ... }
// #docregion class
export class HeroListComponent implements OnInit {
// #docregion ctor
- constructor(private _service: HeroService){ }
+ constructor(private _service: HeroService) { }
// #enddocregion ctor
- heroes:Hero[];
+ heroes: Hero[];
selectedHero: Hero;
- ngOnInit(){
+ ngOnInit() {
this.heroes = this._service.getHeroes();
}
diff --git a/public/docs/_examples/architecture/ts/app/hero.service.ts b/public/docs/_examples/architecture/ts/app/hero.service.ts
index 4fd33a5e09..7f524daa4d 100644
--- a/public/docs/_examples/architecture/ts/app/hero.service.ts
+++ b/public/docs/_examples/architecture/ts/app/hero.service.ts
@@ -1,4 +1,4 @@
-import {Injectable} from 'angular2/core';
+import {Injectable} from '@angular/core';
import {Hero} from './hero';
import {BackendService} from './backend.service';
import {Logger} from './logger.service';
@@ -12,14 +12,14 @@ export class HeroService {
private _logger: Logger) { }
// #enddocregion ctor
- private _heroes:Hero[] = [];
+ private _heroes: Hero[] = [];
getHeroes() {
- this._backend.getAll(Hero).then( (heroes:Hero[]) => {
+ this._backend.getAll(Hero).then( (heroes: Hero[]) => {
this._logger.log(`Fetched ${heroes.length} heroes.`);
this._heroes.push(...heroes); // fill cache
});
return this._heroes;
}
}
-// #enddocregion class
\ No newline at end of file
+// #enddocregion class
diff --git a/public/docs/_examples/architecture/ts/app/hero.ts b/public/docs/_examples/architecture/ts/app/hero.ts
index df6c37a0f5..b89557aa71 100644
--- a/public/docs/_examples/architecture/ts/app/hero.ts
+++ b/public/docs/_examples/architecture/ts/app/hero.ts
@@ -1,10 +1,10 @@
+let nextId = 1;
+
export class Hero {
- id:number
+ id: number;
constructor(
- public name:string,
- public power?:string){
+ public name: string,
+ public power?: string) {
this.id = nextId++;
}
}
-
-var nextId = 1;
diff --git a/public/docs/_examples/architecture/ts/app/logger.service.ts b/public/docs/_examples/architecture/ts/app/logger.service.ts
index 69a7cd6b87..ddbcb61ca7 100644
--- a/public/docs/_examples/architecture/ts/app/logger.service.ts
+++ b/public/docs/_examples/architecture/ts/app/logger.service.ts
@@ -1,5 +1,5 @@
// #docregion
-import {Injectable} from 'angular2/core';
+import {Injectable} from '@angular/core';
@Injectable()
// #docregion class
@@ -8,4 +8,4 @@ export class Logger {
error(msg: any) { console.error(msg); }
warn(msg: any) { console.warn(msg); }
}
-// #enddocregion class
\ No newline at end of file
+// #enddocregion class
diff --git a/public/docs/_examples/architecture/ts/app/main.ts b/public/docs/_examples/architecture/ts/app/main.ts
index 0f064932b1..f5ab51b113 100644
--- a/public/docs/_examples/architecture/ts/app/main.ts
+++ b/public/docs/_examples/architecture/ts/app/main.ts
@@ -1,4 +1,4 @@
-import {bootstrap} from 'angular2/platform/browser';
+import {bootstrap} from '@angular/platform-browser-dynamic';
// #docregion import
import {AppComponent} from './app.component';
// #enddocregion import
diff --git a/public/docs/_examples/architecture/ts/app/sales-tax.component.ts b/public/docs/_examples/architecture/ts/app/sales-tax.component.ts
index 475725a0e4..19234de171 100644
--- a/public/docs/_examples/architecture/ts/app/sales-tax.component.ts
+++ b/public/docs/_examples/architecture/ts/app/sales-tax.component.ts
@@ -1,6 +1,6 @@
// #docplaster
// #docregion
-import {Component} from 'angular2/core';
+import {Component} from '@angular/core';
import {SalesTaxService} from './sales-tax.service';
import {TaxRateService} from './tax-rate.service';
diff --git a/public/docs/_examples/architecture/ts/app/sales-tax.service.ts b/public/docs/_examples/architecture/ts/app/sales-tax.service.ts
index 6a93d3795e..86a797515c 100644
--- a/public/docs/_examples/architecture/ts/app/sales-tax.service.ts
+++ b/public/docs/_examples/architecture/ts/app/sales-tax.service.ts
@@ -1,5 +1,5 @@
// #docregion
-import {Injectable, Inject} from 'angular2/core';
+import {Injectable, Inject} from '@angular/core';
import {TaxRateService} from './tax-rate.service';
// #docregion class
diff --git a/public/docs/_examples/architecture/ts/app/tax-rate.service.ts b/public/docs/_examples/architecture/ts/app/tax-rate.service.ts
index ab4fb2b097..8e6b9add1e 100644
--- a/public/docs/_examples/architecture/ts/app/tax-rate.service.ts
+++ b/public/docs/_examples/architecture/ts/app/tax-rate.service.ts
@@ -1,5 +1,5 @@
// #docregion
-import {Injectable} from 'angular2/core';
+import {Injectable} from '@angular/core';
// #docregion class
@Injectable()
diff --git a/public/docs/_examples/architecture/ts/index.html b/public/docs/_examples/architecture/ts/index.html
index 388031aa10..eb3a14a9c4 100644
--- a/public/docs/_examples/architecture/ts/index.html
+++ b/public/docs/_examples/architecture/ts/index.html
@@ -1,30 +1,21 @@
-
Intro to Angular 2
-
+
Architecture of Angular 2
+
+
-
+
-
-
-
+
+
-
-
+
+
@@ -32,4 +23,4 @@
Loading...
-