Commit Graph

810 Commits

Author SHA1 Message Date
Brandon Roberts 490772e680 docs(aio): Update file tree to match Angular CLI V6 structure (#23367)
PR Close #23367
2018-04-13 14:19:16 -07:00
George Kalpakas 08325aaffc feat(service-worker): add support for configuring navigations URLs (#23339)
The ServiceWorker will redirect navigation requests that don't match any
`asset` or `data` group to the specified index file. The rules for a
request to be classified as a navigation request are as follows:
1. Its `mode` must be `navigation`.
2. It must accept a `text/html` response.
3. Its URL must match certain criteria (see below).

By default, a navigation request can have any URL except for:
1. URLs containing `__`.
2. URLs to files (i.e. containing a file extension in the last path
   segment).

While these rules are fine in many cases, sometimes it is desirable to
configure different rules for the URLs of navigation requests (e.g.
ignore specific URLs and pass them through to the server).

This commit adds support for specifying an optional `navigationUrls`
list in `ngsw-config.json`, which contains URLs or simple globs
(currently only recognizing `!`, `*` and `**`).
Only requests whose URLs match any of the positive URLs/patterns and
none of the negative ones (i.e. URLs/patterns starting with `!`) will be
considered navigation requests (and handled accordingly by the SW).

(This is an alternative implementation to #23025.)

Fixes #20404

PR Close #23339
2018-04-13 13:13:36 -07:00
George Kalpakas d1e716b2cb docs(service-worker): minor fixes/improvements (#23339)
PR Close #23339
2018-04-13 13:13:36 -07:00
Rafael 639d52fe71 refactor: ensure all 'TODO's are consistent (#23252)
PR Close #23252
2018-04-13 13:11:01 -07:00
George Kalpakas 0224f1aaf3 refactor(aio): remove file that should not be tracked (#23359)
PR Close #23359
2018-04-13 08:06:19 -07:00
Rob Wormald 74b203a55e docs(elements): add ng-add docs to elements guide (#23350)
PR Close #23350
2018-04-13 00:50:04 -07:00
Suguru Inatomi 3bd682f432 docs(aio): Add link to Japanese localization (#20630)
PR Close #20630
2018-04-13 00:26:12 -07:00
Juan Camilo Giraldo Chaverra 221ae6998a docs(aio): fix typo on AOT compiler section 2018-04-13 00:06:26 -07:00
Michael Huang f958293205 docs(aio): update text InMemoryWebApiModule to HttpClientInMemoryWebApiModule (#23285)
PR Close #23285
2018-04-12 23:17:19 -07:00
Jeremy Attali 993eeababb docs: fix typo in injected variable name (#23315)
The service injected is `ValueService`, however the name of the variable
does not reflect that. It's actually confusing since it's the name of
the `class` being created.

PR Close #23315
2018-04-12 23:16:52 -07:00
Judy Bogart 1fac5f4eb1 docs: recommend best practice for providers (#22934)
PR Close #22934
2018-04-06 21:49:34 -07:00
Rob Wormald eb9968ab2a docs(elements): use Angular Elements naming in nav (#23213)
PR Close #23213
2018-04-05 16:32:57 -07:00
Anuj Jain b5f41f2c35 docs: fixed live example for the lifecycle hooks. (#23201)
PR Close #23201
2018-04-05 16:29:38 -07:00
George Kalpakas 3b607e60e9 refactor(aio): remove unused images (#23018)
PR Close #23018
2018-04-05 10:12:09 -07:00
George Kalpakas b874501025 docs(aio): update `live-example` docs in authors style guide (#23018)
PR Close #23018
2018-04-05 10:12:09 -07:00
Igor Minar 5db9ab12c0
docs: fix skipTemplateCodeGen -> skipTemplateCodegen typo in the AOT compiler guide 2018-04-04 23:12:28 -07:00
Pete Bacon Darwin 6dd8f6efe4 docs(aio): remove invalid nav item (#23175)
The `custom-elements` guide page was renamed to `elements` in ff34d5ea7.
That commit also added a new nav item for the renamed file, so this item is
no longer valid.

PR Close #23175
2018-04-04 14:32:14 -07:00
JiaLi.Passion c560423b52 build: upgrade zone.js (#23108)
PR Close #23108
2018-04-04 08:24:02 -07:00
Vani 4506230fbb docs: update contents to recommend new way of defining providers (#23076)
PR Close #23076
2018-04-03 12:32:59 -07:00
Vani 5671ae6a58 docs: add tree-shakable providers doc (#23027)
PR Close #23027
2018-04-03 12:32:39 -07:00
Matias Niemelä 18ac228a27 docs: change examples within services to be tree-shakeable (#23070)
PR Close #23070
2018-04-03 10:48:52 -07:00
jenniferfell a4bf5621ed docs: add reference to ng add in tutorial and quick reference (#23130)
PR Close #23130
2018-04-03 07:38:47 -07:00
Zhicheng Wang 4aeff82d53 fix: 文字微调 2018-04-03 10:34:27 +08:00
Judy Bogart ff34d5ea7a docs: add custom elements documentation (#22966)
PR Close #22966
2018-04-02 14:13:46 -07:00
Judy Bogart de0b13d41d docs: update for hero service name change (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Judy Bogart 07d33d4e5a docs: fix operator name (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Judy Bogart 9f7bd8f618 docs: update text around changed obs examples (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Alex Rickabaugh e1ea7ed019 docs: update examples for tree-shakeable providers (#22961)
PR Close #22961
2018-03-28 07:53:04 -07:00
Zhicheng Wang 2a2e66034d fix: 查漏补缺 2018-03-28 08:51:22 +08:00
Zhicheng Wang 8e205552ff chore: add to thanks 2018-03-28 08:38:56 +08:00
ChristinaLy 47f73c2795 fix issue #290
文件拓展名翻译错误
2018-03-28 08:30:27 +08:00
ChristinaLy 86cc002b7e 修改翻译错误
inject into any class that asks for it应该翻译为“把它注入到任何请求注入的类中”
2018-03-28 08:30:27 +08:00
Veres Lajos de90314304 style: typos fixed - https://github.com/vlajos/misspell-fixer (#22975)
PR Close #22975
2018-03-27 14:51:53 -04:00
Zhicheng Wang ced3662da9 fix: 微调 2018-03-27 13:00:43 +08:00
Zhicheng Wang b433d2148c fix: change some angular.io to angular.cn 2018-03-26 16:34:57 +08:00
Zhicheng Wang 42b585cc9f fix: 去掉多余的空行,以解决首页部分 Markdown 无法正常编译的问题 2018-03-26 15:55:18 +08:00
Zhicheng Wang 5dad75d04f fix: merge examples and images 2018-03-26 15:13:41 +08:00
Zhicheng Wang 838f07bdcd fix: 修正错误的标题级别 2018-03-26 14:53:47 +08:00
Zhicheng Wang 7965991c60 feat: 翻译完了 architecture-services 2018-03-25 17:04:24 +08:00
Zhicheng Wang 01ed628717 feat: 翻译完了 architecture-components 和 architecture-modules 2018-03-25 12:36:17 +08:00
Zhicheng Wang b01ec8ad9a feat: 翻译完了 architecture-next-steps 2018-03-25 08:27:31 +08:00
Zhicheng Wang 9e732fc4ff feat: 翻译完了 architecture 2018-03-25 08:01:14 +08:00
Zhicheng Wang e1ca813b7c fix: 翻译完了 reactive-forms 新增的部分 2018-03-24 21:43:09 +08:00
Zhicheng Wang e167fa5229 refactor: 重构自动翻译代码 2018-03-24 20:03:10 +08:00
Zhicheng Wang 6c3d57aee9 fix: 合并了最新版本 2018-03-24 13:12:42 +08:00
Zhicheng Wang a4ac40b640 fix: 翻译了所有遗漏的部分。 2018-03-24 11:16:33 +08:00
Zhicheng Wang 5c39927ee1 fix: 微调 2018-03-24 08:44:35 +08:00
Zhicheng Wang abbc8d84f0 fix: 微调 2018-03-24 08:38:15 +08:00
Zhicheng Wang 0203e84780 fix: 微调 2018-03-24 08:32:25 +08:00
Zhicheng Wang 15691c4e36 fix: 微调 2018-03-24 08:14:29 +08:00
Zhicheng Wang a65ccab7be feat: 翻译完了 Service Worker。
feat: 本版的翻译全部完工。
2018-03-24 08:11:01 +08:00
Victor Berchet 4bd3a65764 fix(aio): mark the 'titlecase' pipe as pure (#22959)
PR Close #22959
2018-03-23 16:28:05 -04:00
Alberto Piras 16f021c319 docs(aio): fix TS warning error - filter expects a boolean function param (#22954)
PR Close #22954
2018-03-23 13:07:57 -04:00
Zhicheng Wang 16aaf4db45 feat: 翻译了一部分 Service Worker 2018-03-23 22:51:40 +08:00
Zhicheng Wang 1e4bddbe26 feat: 翻译了一部分 Service Worker 2018-03-23 17:00:19 +08:00
Zhicheng Wang 494553a567 feat: 翻译完了 AOT Compiler 2018-03-23 14:25:12 +08:00
Zhicheng Wang c20a841249 fix: 部分 更新 替换成 修改 2018-03-23 09:48:55 +08:00
Zhicheng Wang d0292bbe82 fix: 把遗漏的 我们 替换成 你 2018-03-23 09:43:02 +08:00
Zhicheng Wang a523fbdedb fix: upgrade 中的 我们 替换成 你 2018-03-23 09:13:46 +08:00
Zhicheng Wang 886f7da931 fix: 把烹饪书换成烹饪宝典 2018-03-22 17:30:09 +08:00
Zhicheng Wang 2b2b537008 fix: 把中文中的_替换成* 2018-03-22 17:24:05 +08:00
Zhicheng Wang f75baea397 fix: 把除了 upgrading 之外的 我们 都替换成了 你
fix: 翻译了一部分 AOT Compiler
2018-03-22 17:19:12 +08:00
Zhicheng Wang 5ff85f455c fix: 翻译 i18n 剩下的部分 2018-03-22 10:55:55 +08:00
Zhicheng Wang 67cb21e6c1 fix: 翻译完了服务端渲染部分 2018-03-22 10:52:52 +08:00
Zhicheng Wang 450474fca1 fix: 修正 i18n 编译错误 2018-03-22 10:52:34 +08:00
Jinhyuk Kim f461f43d72 docs: fix a typo in aot compiler guide (#22876)
PR Close #22876
2018-03-21 13:20:51 -07:00
Zhicheng Wang 83e7817ff2 fix: 统一了 JIT 和 AOT 的写法 2018-03-21 16:23:00 +08:00
Zhicheng Wang b54ce4847d feat: 翻译完了 i18n 部分 2018-03-21 16:21:28 +08:00
Zhicheng Wang 2b6e7c8ca1 feat: 翻译完了 NgModule 部分 2018-03-21 14:02:05 +08:00
Igor Minar 5f1be9b89b ci: temporarily disable two styleguide example tests (#22887)
these tests started failing with 6.0.0-beta.0 upgrade because of a weird issue when used with rxjs v6 with rxjs-compat

PR Close #22887
2018-03-20 15:26:49 -07:00
Zhicheng Wang 37e19cd50b feat: 自动在中英文之间添加空格,以改善排版 2018-03-20 17:15:36 +08:00
Zhicheng Wang 545d4b6c69 feat: 自动在中英文之间添加空格,以改善排版 2018-03-20 17:09:18 +08:00
Zhicheng Wang b9c59b2249 feat: 翻译了一部分 NgModule 的内容 2018-03-20 15:40:07 +08:00
Igor Minar b43f8bc7d3 feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573)
PR Close #22573
2018-03-19 21:51:51 -07:00
Igor Minar c445314239 ci: temporarily disable tests that depend on angular-in-memory-web-api (#22573)
angular-in-memory-web-api is not yet compatible with rxjs v6 and rxjs v6 backwards compatibility package is not yet ready to be used.

PR Close #22573
2018-03-19 21:51:51 -07:00
Zhicheng Wang 935fdf30dc feat: 翻译完了 Observable 与 RxJS 2018-03-20 11:31:56 +08:00
Zhicheng Wang e0fc873240 fix: minor fix and auto translate based on previous result 2018-03-18 07:44:33 +08:00
Andrew Seguin 46efd4b938 feat(elements): George's comments (#22413)
PR Close #22413
2018-03-16 12:39:07 -07:00
Andrew Seguin 22b96b9690 feat(elements): add support for creating custom elements (#22413)
PR Close #22413
2018-03-16 12:39:07 -07:00
Zhicheng Wang ac312e2f9a fix: update the homepage of Element Angular 2018-03-16 12:20:59 +08:00
Victor Berchet 0ebd577db4 refactor(compiler): Drop support for the deprecated `<template>`. Use `<ng-template>` instead (#22783)
BREAKING CHANGE:

The `<template>` tag was deprecated in Angular v4 to avoid collisions (i.e. when
using Web Components).

This commit removes support for `<template>`. `<ng-template>` should be used
instead.

BEFORE:

    <!-- html template -->
    <template>some template content</template>

    # tsconfig.json
    {
      # ...
      "angularCompilerOptions": {
        # ...
        # This option is no more supported and will have no effect
        "enableLegacyTemplate": [true|false]
      }
    }

AFTER:

    <!-- html template -->
    <ng-template>some template content</ng-template>

PR Close #22783
2018-03-15 14:52:22 -07:00
Judy Bogart 02e6ac2117 docs: incorporate suggestions and corrections from gkalpak (#21569)
PR Close #21569
2018-03-15 14:48:35 -07:00
Judy Bogart 04ca77e38e docs(aio): update architecture section (#21569)
PR Close #21569
2018-03-15 14:48:35 -07:00
Zhicheng Wang 00cac11c4f fix: 把所有 project 翻译为项目而不是工程 2018-03-15 17:12:36 +08:00
Zhicheng Wang 95b04faeff fix: 翻译完了TS配置和发布的剩余部分 2018-03-15 17:10:51 +08:00
Zhicheng Wang 18ac616385 fix: 修改了《环境准备与部署》中剩下的部分 2018-03-15 16:15:18 +08:00
Zhicheng Wang dd5a7861cb fix: 翻译了《风格指南》中剩余的部分 2018-03-15 16:08:29 +08:00
Zhicheng Wang e45599eac1 fix: 对《测试》进行微调 2018-03-15 15:57:16 +08:00
Zhicheng Wang cae70fab87 fix: 翻译完了《测试》的剩余部分 2018-03-15 15:48:26 +08:00
Zhicheng Wang 6d5cfd568b fix: 翻译了《测试》的一部分 2018-03-15 13:04:10 +08:00
Matias Niemelä f5a98f41fe fix(core): remove core animation import symbols (#22692)
This patch removes the deprecated support for animation
symbol imports from @angular/core.

BREAKING CHANGE: it is no longer possible to import
animation-related functions from @angular/core. All
animation symbols must now be imported from @angular/animations.

PR Close #22692
2018-03-14 12:23:51 -07:00
Suguru Inatomi 9df13add5d docs(aio): add ng-japan 2018 to events (#22750)
ng-japan 2018 will be held at June 16 in Tokyo, Japan! 

https://ngjapan.org/en.html
PR Close #22750
2018-03-14 10:59:55 -07:00
Ward Bell 1f9734315d docs: testing - highlight dispatchEvent (#22726)
PR Close #22726
2018-03-14 10:21:41 -07:00
Zhicheng Wang 21ffc7d24f fix: 翻译了《速查表》的剩余部分 2018-03-14 09:26:46 +08:00
Zhicheng Wang 12f330a27f fix: 翻译《路由与导航》中遗漏的部分
fix: 把 header 修复成双行对照的格式
2018-03-14 09:13:52 +08:00
Zhicheng Wang 62afb2124d fix: 翻译《HttpClient》中遗漏的部分 2018-03-14 08:48:17 +08:00
Zhicheng Wang 73a40b825d fix: 翻译《Angular 依赖注入》中遗漏的部分 2018-03-13 09:06:53 +08:00
Zhicheng Wang 0ed2ae71e1 fix: 翻译《表单》和《引导启动》中遗漏的部分 2018-03-12 14:36:59 +08:00
Zhicheng Wang 964cefaeea fix: 翻译《表单》和《引导启动》中遗漏的部分 2018-03-12 14:25:24 +08:00
Zhicheng Wang 797d882858 fix: 翻译《动画》中遗漏的部分 2018-03-12 13:21:11 +08:00