69 Commits

Author SHA1 Message Date
Jesús Rodríguez
e6741efd8f chore: remove moduleId from examples ()
* chore: remove moduleId from examples

* add support for testing and plunkers

* delete component-relative cookbook

* latest touches

* ward teaks and travis fixes

* fix typo in style-guide
2017-03-14 12:30:37 +01:00
Filipe Silva
1101f07ef2 refactor: add src folder ()
* boilerplate, gulpfile, quickstart

* move ts files up to cookbooks

* move rest of ts files

* fix tsconfig, default build task, json file

* fix js examples

* fix webpack example

* remove a2docs.css references

* fix aot examples

* fix webpack run task

* fix cb-i18n

* fix upgrade examples

* fix unit tests

* fix comment in deployment index

* removed unused typings.json

* fix plunkers

* fix js example paths

* fix ts quickstart/setup prose

* add src folder note to setup

* broadly replace app/ -> src/app/

* broadly replace main.ts

* broadly replaced index.html

* broadly replace tsconfig

* replace systemjs

* fix filetrees

* Minor prose fixes to aot, i18n cookbooks

* remove char harp was complaining about

* update new reactive forms example

* fix quickstart jade error

* fix mistakes uncovered by CI

* fix bad filename errors

* edit style guide 04-06 rule to use src

* add changelog

* Incorporate Jesus's feedback

* fix snippet headers in toh1/2

* chore: tweak changelog and setup text
2017-02-02 19:38:17 +01:00
Jesús Rodríguez
8811094954 docs(testing): fix plunkers shim () 2017-01-31 12:52:43 -08:00
Jesús Rodríguez
1b78cc4f35 chore: add base href to all examples () 2017-01-28 00:38:34 +01:00
Filipe Silva
4ec1736f18 chore: convert relative templateUrl/styleUrls to have ./ 2017-01-04 19:02:19 +00:00
Filipe Silva
0f3d5810a8 chore(deps): remove reflect-metadata ()
Blocked on https://github.com/angular/in-memory-web-api/pull/86

As per https://github.com/zloirock/core-js/issues/152, `core-js` already includes `reflect-metadata`.
2017-01-02 21:15:24 +00:00
Patrice Chalin
05cdd9aa8a chore: delete Dart _examples () 2016-12-14 13:16:13 -08:00
Patrice Chalin
ab988b4e22 Dart upgrade to 2.2.0
```
Suites passed:
  public/docs/_examples/architecture/dart
  public/docs/_examples/attribute-directives/dart
  public/docs/_examples/dependency-injection/dart
  public/docs/_examples/displaying-data/dart
  public/docs/_examples/forms/dart
  public/docs/_examples/lifecycle-hooks/dart
  public/docs/_examples/pipes/dart
  public/docs/_examples/quickstart/dart
  public/docs/_examples/server-communication/dart
  public/docs/_examples/template-syntax/dart
  public/docs/_examples/toh-1/dart
  public/docs/_examples/toh-2/dart
  public/docs/_examples/toh-3/dart
  public/docs/_examples/toh-4/dart
  public/docs/_examples/toh-5/dart
  public/docs/_examples/toh-6/dart
  public/docs/_examples/user-input/dart
All tests passed

Elapsed time: 1355.134 seconds
```
2016-12-01 08:12:43 -08:00
Patrice Chalin
56e6513659 docs(dart): upgrade to 2.1.1 ()
* update docs home banner

* update example and main repo pubspec.yaml files

* update shredder tests

(Not strictly necessary, but avoids tripping regex triggers when doing
updates.)
2016-11-29 09:36:19 -08:00
Patrice Chalin
f993315931 chore(dart): complete the renaming of "Angular 2" to "Angular" ()
Contributes to 

- Dropped the “2” in “Angular 2” and “angular2_*” where appropriate.
- Did a partial sync of `_cache/guide/pipes.jade`
- In quickstart, changed `Try changing the message to "Hello Angular
2!”` to `Try changing the message to "Hello Again Angular!”`.
2016-11-17 14:10:28 -08:00
Patrice Chalin
d853a29fe0 examples(dart): demote some packages to dev_dependencies ()
Fixes 
2016-11-17 13:47:51 -08:00
Ward Bell
8fafa8a01e docs(plunkers): prepare plunkers for the quickstart reboot ()
* plunker builder removes files and scripts not needed in plunkers (e.g., systemjs.config.js)
* no longer adds placeholder README.md (deemed a distraction)
* tag is now "Angular" instead of "Angular2"
* new plnkr.json "includeSystemConfig" option adds systemjs.config.js back; needed for testing plnkrs.
* incidentally changes comment "Polyfill(s)" to "Polyfills" in all index.html
2016-11-05 12:53:47 -07:00
Ward Bell
ae35f0e017 docs(lifecycle-hooks): SimpleChange -> SimpleChanges () 2016-11-02 21:50:38 -07:00
Patrice Chalin
197be09785 chore(dart): update to 2.0.0 () 2016-10-26 16:36:21 +02:00
Filipe Silva
5042b3021c chore(test): add protractor4 ()
* chore(test): add protractor4

* fix lint, remove boilerplate files, fix less gen

* separate scripts between package.json

* ignore a2docs.css in boilerplate

* remove tslint in _examples
2016-10-06 15:25:52 -07:00
Patrice Chalin
64d5b3dc23 docs(dart): upgrade to beta.22 ()
* update to beta.22
* Dart SDK 1.19.0 or later is required
* minor edits to sample app titles to e2e tests pass
  * Renamed “Angular 2” to “Angular” so that shared e2e tests pass.
* Tweak to QS prose.
2016-09-27 13:41:46 -07:00
Ward Bell
6def9505cc chore: convert templateUrls to use moduleId where possible. () 2016-09-25 18:51:54 -07:00
Ward Bell
f5f1e80bb7 docs(lifecycle-hooks): make it easier to get to call sequence ()
Per Ben Lesh suggestion. Also converts away from "we"
2016-09-24 12:37:22 -07:00
Jesús Rodríguez
693f6ae462 chore: rename Angular 2 to simply Angular () 2016-09-19 20:24:40 -07:00
Patrice Chalin
d24ff43728 examples(lifecycle-hooks): update Dart sample to match TS ()
Make equivalent TS code changes to Dart sample.

This sync’s Dart with all  changes pertinent to Dart.

E2E tests pass now for Dart, Suites passed:
-  public/docs/_examples/lifecycle-hooks/ts
2016-09-08 08:38:25 -07:00
Patrice Chalin
ec076f842e [WIP] chore(dart): update to beta.21 () 2016-09-07 16:52:04 -07:00
Filipe Silva
0c962712b3 chore: update to rc6 () 2016-08-31 18:08:57 -07:00
Patrice Chalin
f0daf5d238 docs(lifecycle-hooks): post-RC5 Dart resync ()
* lifecycle-hooks: copy latest to cache

* docs(lifecycle-hooks): post-RC5 Dart resync

- TS prose: removed mention of `routerOnActivate` which no longer
exists in the new router.
- TS improvements to the sample code have also been propagated to the
Dart sample.

Contributes to .
E2E tests pass now.

* post-review updates
2016-08-19 15:07:30 -07:00
Patrice Chalin
0a631087fa docs(dart): upgrade to beta.20 () 2016-08-18 22:47:52 -07:00
Peter Bacon Darwin
d79adb2422 docs(rc5): update docs and plunkers for rc5 2016-08-09 11:48:07 -07:00
Patrice Chalin
b796d4b97d chore(dart-doc-sync): data files for component-styles and lifecycle-hooks ()
Note that component-styles and lifecycle-hooks examples have been
sync’d for a while, though they were missing `.docsync.json` files.
2016-08-08 12:48:44 -07:00
Patrice Chalin
eafd7db119 chore(ng2/dart): update from beta.1x to beta.18 ()
* chore(ng2/dart): update from beta.1x to beta.18

Update made to all `pubspec.yaml` files and to relevant prose.
Note that pipes was back a beta.15; the rest were at beta.17.

* chore(pipes/dart): update ngFor microsyntax and transform method param

Updates to pipe example source code:
- Pipe `transform()` method parameters
- `ngFor` microsyntax, from `#` to `let`
2016-07-20 15:51:23 -07:00
Patrice Chalin
eda47f64e8 docs(guide/lifecycle-hooks): follow-up to ()
Mainly Dart-side review, following :
- Updates to follow style guide
- Enabled e2e tests
- Fixes to ensure tests pass: in after_view_component.dart and
after_content_component.dart
  - Changed test over comment field in template to be:
*ngIf="comment.isNotEmpty"
- Suites passed:
  public/docs/_examples/lifecycle-hooks/dart
  public/docs/_examples/lifecycle-hooks/ts
2016-06-28 13:13:58 -07:00
Filipe Silva
61c85a92a4 chore: add async/await support to e2e tests 2016-06-17 10:43:16 -07:00
Patrice Chalin
82b4657422 chore(dart pubspec.yaml): consistent baseline () 2016-06-15 14:59:57 -07:00
Filipe Silva
e9cf2a539f chore: update to rc2 2016-06-15 12:21:06 -07:00
Foxandxss
074a33a622 chore: tslint sweep done 2016-06-13 02:40:28 +02:00
Foxandxss
f3205f5beb chore: first sweep on linting the codebase
closes 
2016-06-07 16:45:13 -07:00
Foxandxss
c2c3177545 chore: convert all e2e specs to typescript 2016-06-01 16:17:06 -07:00
Ward Bell
8a5df4cfa9 chore: support e2e-specs written in TypeScript
Update gulpfile and project to add a tsconfig to protractor test folders
Change all sample e2e-spec.js -> e2e-spec.ts
Split typings between e2e-spec & app code
Use same config for all e2e tests
Only 1/3 e2e specs truly converted.
Most don't pass because they fail TS transpile by Protractor due to missing type annotations
2016-05-31 22:03:13 -07:00
Ward Bell
ba02c40b56 docs: switch from es6-shim to core-js shim 2016-05-19 16:37:54 -07:00
Ward Bell
e99e9185ba docs(index.html) remove extra space in System.importline. 2016-05-11 18:42:31 -07:00
Patrice Chalin
ac92e77611 docs(dev guide): lifecycle-hooks - updated dart/ts code and new dart prose
Mainly copyedits, but also

- Dart .jade extends TS .jade file with minor overrides
- Significant update of example code (so it matches the ts example in its
appearance and behavior).
- Tweaks to Dart code.
- A few extra/corrected mixin definitions in `_util-fns.jade`.
2016-05-06 14:17:34 +01:00
Foxandxss
596825a8b1 docs: update all docs to partially comply the style-guide 2016-05-03 12:42:44 -06:00
Ward Bell
3d5302adce chore: update to rc.0 2016-05-02 19:57:28 -07:00
Foxandxss
f4223c7049 docs(lifecycle-hooks): update directive selector to camelCase
closes 
2016-05-01 15:19:12 -07:00
Patrice Chalin
ff20b55975 chore(dart & ts): update to beta.17
Change `ngFor=“#…”` to `ngFor=“let…` in code. All are .dart files
except for `app_component.html` which also has changes for:
- `<inpuf var-foo…`> to `<input ref-foo…>`
- `#docregion` tag name updates from var-foo to ref-foo.
- Other misc updates to minimize diffs with TS version of file,
whitespace differences were ignored.

+ Minor update to sync up Dart prose with TS prose.

+ Used
https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer#resol
ved_identifiers to solve
https://github.com/angular/angular.io/issues/1033

Guide/pipes not updated as it will be rolled back to
beta.15 in PR .
2016-04-30 15:01:16 +01:00
Filipe Silva
216120daba chore: update to beta.17
closes , 1205
2016-04-28 18:31:00 -07:00
Patrice Chalin
0557c728d7 chore(dart): updating to beta.16
closes 

Updated docs and samples to beta.16.

For this first time, among other things, I payed particular attention
to the changes that were made on the `ts` side of things
(https://github.com/angular/angular.io/pull/1178). Since I wrote it up
in my notes, here is the check list of `ts` updates with notes about
how there might be corresponding changes on the Dart side:

- public/docs/_examples/cb-dependency-injection/ts/app/main.ts
- public/docs/_examples/cb-ts-to-js/ts/app/main.ts
  - cb not in Dart docs yet.
- public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts
-
public/docs/_examples/dependency-injection/ts/app/injector.component.ts
  - Updated Dart example code to avoid null argument.
- public/docs/_examples/homepage-hello-world/ts/index.1.html
- public/docs/_examples/homepage-tabs/ts/index.1.html
- public/docs/_examples/homepage-todo/ts/index.1.html
- public/docs/_examples/package.json
  - N/A for Dart.
- public/docs/_examples/pipes/ts/app/app.component.html
- public/docs/_examples/pipes/ts/app/app.component.ts
- public/docs/_examples/pipes/ts/app/exponential-strength.pipe.ts
- public/docs/_examples/pipes/ts/app/fetch-json.pipe.ts
- public/docs/_examples/pipes/ts/app/random-pipe.component.ts
  - Dart version of sample code is incomplete, but did run in beta.15.
  - Example no longer runs, see
https://github.com/angular/angular/issues/8258
- public/docs/_examples/quickstart/js/package.1.json
- public/docs/_examples/quickstart/ts/package.1.json
- public/docs/_examples/router/ts/app/main.2.ts
- public/docs/_examples/testing/ts/app/mock-router.ts
  - N/A for Dart.
- public/docs/js/latest/_data.json
- public/docs/ts/latest/_data.json
  - Dart equivalent updated.
- public/docs/ts/latest/guide/dependency-injection.jade
  - No need to update since it imports the TS version.
- public/docs/ts/latest/guide/pipes.jade
  - Not in Dart prose yet.
- tools/plunker-builder/indexHtmlTranslator.js
  - N/A for Dart.
2016-04-28 15:32:16 -07:00
Ward Bell
e1862887ae docs(testing): more testing samples and infrastructure setup
added wallaby config; revised karma-test-shim
2016-04-22 13:24:44 -07:00
Kathy Walrath
e552239148 chore(dart): update docs/samples to beta.15
closes 
2016-04-14 09:26:41 -07:00
Kathy Walrath
8bc3d2e9e5 chore: update dart to b.14
Downrated server-communication to b6; it stopped working in b.9 (or possibly b.8 or b.7).

Closes 
2016-04-07 14:19:31 -07:00
Kathy Walrath
a0a2ee6a93 docs(dart): update to beta.13.1
closes 
2016-03-31 16:06:24 -07:00
Kathy Walrath
2144b8e5b6 docs(dart): change imports from bootstrap.dart to platform/browser.dart
closes 
2016-03-28 14:56:22 -07:00
Kathy Walrath
185f9a7049 docs(dart): update to b12
Also update dart_to_js_script_rewriter dependency to ^1.0.1,
and change most angular2.dart imports to be core.dart instead.

The pipes example broke without the angular2.dart import, so I let it be.

The server-communication sample has never worked for me,
so I changed it but might have broken it further.

closes 
2016-03-25 17:40:23 -07:00