Tobias Bosch
41404057cf
fix(build): ignore Dart warnings for external code.
2016-04-20 10:51:58 -07:00
Pawel Kozlowski
f4e6994634
feat(NgTemplateOutlet): add NgTemplateOutlet directive
...
This commits adds a new NgTemplateOutlet directive that can be
used to create embeded views from a supplied TemplateRef.
Closes #7615
Closes #8021
2016-04-20 04:28:59 +00:00
Eric Jimenez
c934fb704f
docs(badges): add badges in hero to identify doc type to viewer, and stability. Stylize var.template for new api style docs. Add stable, experimental, docsNotRequired tagdef in dgeni
2016-04-19 20:49:48 -07:00
Julie Ralph
8490921fb3
feat(tests): manage asynchronous tests using zones
...
Instead of using injectAsync and returning a promise, use the `async` function
to wrap tests. This will run the test inside a zone which does not complete
the test until all asynchronous tasks have been completed.
`async` may be used with the `inject` function, or separately.
BREAKING CHANGE:
`injectAsync` is now deprecated. Instead, use the `async` function
to wrap any asynchronous tests.
Before:
```
it('should wait for returned promises', injectAsync([FancyService], (service) => {
return service.getAsyncValue().then((value) => { expect(value).toEqual('async value'); });
}));
it('should wait for returned promises', injectAsync([], () => {
return somePromise.then(() => { expect(true).toEqual(true); });
}));
```
After:
```
it('should wait for returned promises', async(inject([FancyService], (service) => {
service.getAsyncValue().then((value) => { expect(value).toEqual('async value'); });
})));
// Note that if there is no injection, we no longer need `inject` OR `injectAsync`.
it('should wait for returned promises', async(() => {
somePromise.then() => { expect(true).toEqual(true); });
}));
```
Closes #7735
2016-04-18 15:59:07 -07:00
Eric Jimenez
5ea7738ad3
change class and directive template.
2016-04-16 03:17:47 -07:00
Ward Bell
f2f5d9f9ae
docs(ts): update to beta.15
...
also restore accidentally deleted router sample files
2016-04-13 19:26:48 -07:00
Tobias Bosch
2b34c88b69
refactor(view_compiler): codegen DI and Queries
...
BREAKING CHANGE:
- Renderer:
* renderComponent method is removed form `Renderer`, only present on `RootRenderer`
* Renderer.setDebugInfo is removed. Renderer.createElement / createText / createTemplateAnchor
now take the DebugInfo directly.
- Query semantics:
* Queries don't work with dynamically loaded components.
* e.g. for router-outlet: loaded components can't be queries via @ViewQuery,
but router-outlet emits an event `activate` now that emits the activated component
- Exception classes and the context inside changed (renamed fields)
- DebugElement.attributes is an Object and not a Map in JS any more
- ChangeDetectorGenConfig was renamed into CompilerConfig
- AppViewManager.createEmbeddedViewInContainer / AppViewManager.createHostViewInContainer
are removed, use the methods in ViewContainerRef instead
- Change detection order changed:
* 1. dirty check component inputs
* 2. dirty check content children
* 3. update render nodes
Closes #6301
Closes #6567
2016-04-13 14:43:48 -07:00
Jason Teplitz
a5d6b6db8b
fix(WebWorker): Fix textarea value not being sent to the worker
...
Closes #7439
Closes #7828
2016-04-13 13:24:04 -07:00
Alex Eagle
3412aba46e
feat(typescript): update to 1.9 nightly.
...
To workaround https://github.com/Microsoft/TypeScript/issues/7573
we must remove the readonly keyword from generated .d.ts files.
This solution will not scale, but will probably buy enough time to require our users move to a 2.0 beta.
Closes #8003
2016-04-13 18:54:58 +00:00
Tobias Bosch
01e6b8c7ed
fix(build): ignore dart warnings The name … is shown, but not used
...
See https://github.com/angular/angular/issues/8044
Closes #8045
2016-04-13 09:49:33 -07:00
Alex Rickabaugh
60727c4d2b
revert(format): Revert "chore(format): update to latest formatter"
...
This reverts commit 03627aa84d90f7f1d8d62f160997b783fdf9eaa4.
2016-04-12 09:41:01 -07:00
Alex Eagle
03627aa84d
chore(format): update to latest formatter
...
Closes #7958
2016-04-11 22:15:23 +00:00
Chuck Jazdzewski
08b295603c
fix(7987): Incremental build works with new trees
...
Closes #7989
2016-04-11 20:28:34 +00:00
vsavkin
3b60503d2b
feat(transformers): changes transformers to collect information about providers and resolve identifiers during linking
2016-04-10 19:36:16 -07:00
Chuck Jazdzewski
f371c9066d
build(broccoli): Clean-up TypeScript build
...
The TypeScript parser now only references files that are in broccoli trees.
Closes #7941
2016-04-08 19:30:39 +00:00
Chuck Jazdzewski
85c1927993
build(broccoli): AngularBuilder compiles with TypeScript 1.8+.
...
Beginning with 1.8, if a modules has both a .ts and .d.ts file, the .js
file is not written.
Closes #7947
2016-04-08 19:24:04 +00:00
Tim Blasi
26a3390549
refactor(dart/transform): Remove deprecated angular2/bootstrap
...
BREAKING CHANGE
Remove the deprecated angular2/bootstrap.ts &
angular2/bootstrap_static.ts libraries.
Browser entry points should import angular2/platform/browser which
supplies the `bootstrap` function.
Closes #7650
2016-04-08 18:28:35 +00:00
Alex Eagle
9a1959f77a
build(tslint): re-enable linter and fix violations
...
fixes #7798
Closes #7800
2016-04-07 23:11:02 +00:00
Chuck Jazdzewski
c17dc1c057
fix(7837): MetadataCollector takes no parameters for the constructor.
...
MetadataCollector no longer requires a ts.LanguageService parameter
it didn't use.
Closes #7838
2016-04-07 21:38:07 +00:00
Filipe Silva
0ef63166f8
chore: update to beta.14
2016-04-07 21:31:40 +01:00
vsavkin
8db97b0b7a
fix(forms): support both value and ng-value
2016-04-06 14:37:57 -07:00
Kara Erickson
74e2bd7e3e
fix(select): support objects as select values
...
Closes #4843
Closes #7842
2016-04-06 17:05:38 +00:00
vsavkin
52d3980d02
Revert "feat(transformers): changes transformers to collect information about providers and resolve identifiers during linking"
...
This reverts commit 4e9809bcb276a3ef18482af6782b746a19d96827.
2016-04-06 09:26:03 -07:00
Ward Bell
7fdb40caa3
chore: replace VSCode-specific settings.json with broadly recommended .editorconfig
...
closes #1022
2016-04-05 10:15:27 -07:00
vsavkin
4e9809bcb2
feat(transformers): changes transformers to collect information about providers and resolve identifiers during linking
...
Closes #7380
2016-04-04 22:59:43 +00:00
Peter Bacon Darwin
d6d46076b7
fix(api-builder): add missing git package dependency
...
This was causing the api-builder tests to fail
2016-04-01 21:26:03 +01:00
Eric Jimenez
fa4b597614
Add additional tags to the angular.io dgeni package for the new api doc style proposal.
...
Closes #1030
2016-04-01 17:37:21 +01:00
Ward Bell
082932a210
docs: update to beta.13
2016-03-31 13:22:46 -07:00
Chuck Jazdzewski
506f4ce1e5
feat(compiler): Resolvers now use DI to create reflector
...
Also introduced ReflectorReader when only read-only access to the reflector
is needed.
Closes #7762
2016-03-28 13:52:32 -05:00
Tero Parviainen
7f11a6ce05
docs(cb-ts-to-js): add cookbook about applying TypeScript examples to ES5
...
closes #893
2016-03-27 23:36:51 -07:00
Chuck Jazdzewski
111afcdff1
fix(build): MetadataCollector correctly collects property metadata
...
Fixes #7772
Closes #7773
2016-03-25 21:52:06 +00:00
Chuck Jazdzewski
85f3dc2fb5
chore(build): Produce .d.ts files for build tools
...
Closes #7763
2016-03-25 18:23:00 +00:00
Chuck Jazdzewski
09f4d6f52d
chore(refactor): Refactored metadata collector
...
Renamed MetadataExtractor to MetadataCollector
Reorganized to split src from tests
Closes #7492
2016-03-24 18:52:06 +00:00
Chuck Jazdzewski
3f57fa6e0e
chore(build): Added tests for metadata extractor
...
Adds unit test to metadata extractor classes
Fixes issues found while testing
2016-03-24 18:52:06 +00:00
Chuck Jazdzewski
ae876d1317
feat(build): Persisting decorator metadata
...
This allows determing what the runtime metadata will be for a
class without having to loading and running the corresponding
.js file.
2016-03-24 18:52:06 +00:00
Ward Bell
a2cb80330a
docs: update to beta-12
2016-03-23 21:39:13 -07:00
Ward Bell
639ca37de5
docs: update to beta-11
...
closes #987
also updated lifecycle-hooks/e2e-spec for changed hook calling sequence (not a bug; just a change)
2016-03-18 19:22:00 -07:00
Misko Hevery
2f581ffc88
fix(router): RouterOutlet loads component twice in a race condition
...
Closes #7497
Closes #7545
2016-03-16 22:34:54 +00:00
Jeremy Elbourn
d61aaac400
chore(): remove all angular2_material code.
2016-03-16 13:37:37 -07:00
Misko Hevery
310620fd12
chore: upgrade to new Zone.js API v0.6.2
...
BREAKING CHANGE
Removed deprecated API from NgZone
- `NgZone.overrideOnTurnStart`
- `NgZone.overrideOnTurnDone`
- `NgZone.overrideOnEventDone`
- `NgZone.overrideOnErrorHandler`
Rename NgZone API
- `NgZone.onTurnStart` => `NgZone.onUnstable`
- `NgZone.onTurnDone` => `NgZone.onMicrotaskEmpty`
- `NgZone.onEventDone` => `NgZone.onStable`
Closes #7345
2016-03-16 18:05:09 +00:00
Ward Bell
2929255bb4
chore: update es6-shim to v.0.35.0 per A2 issue #7618
2016-03-15 11:45:39 -07:00
Brian Ford
f9fb72fb0e
chore(core): remove @View annotation
...
Closes #7495
2016-03-14 23:26:20 +00:00
Kara Erickson
df1f78e302
feat(i18n): add ngPlural directive
2016-03-10 09:55:21 -08:00
Ward Bell
5f2148b4f4
docs(ts): update to A2 beta.9
2016-03-09 17:44:47 -08:00
Misko Hevery
14f0e9ada8
chore: fix DDC errors / warnings
...
Closes #7195
2016-03-08 22:17:32 +00:00
Igor Minar
d9e78e4fa8
build(analytics): allow build analytics to take previous exit code as the first argument
2016-03-05 19:54:22 +00:00
Igor Minar
10fedd0dfc
ci(analytics): correctly report CI job errors as errors
2016-03-05 19:54:22 +00:00
Igor Minar
315e73c47c
ci(analytics): report Travis ID without the build number prefix
...
We need to track latency of individual jobs over time, but don't care to know what's the build ID that these jobs are associted with.
2016-03-05 19:54:22 +00:00
Igor Minar
912717ff31
ci(analytics): fix TRAVIS_PULL_REQUEST reporting
...
process.env.TRAVIS_PULL_REQUEST contains a string and not a boolean value, so we need
to compare it to a string literal rather than do boolean arithmetics.
2016-03-05 19:54:22 +00:00
Misko Hevery
6402d61f69
chore: fix up ngClass for types/export missing public API
...
Closes #7202
2016-03-04 08:03:55 +00:00