vsavkin
095db673c5
feat(i18n): implement a simple version of message extractor
...
Closes #7454
2016-03-14 21:50:00 +00:00
vsavkin
70d18b5b53
feat(compiler): change html parser to preserve comments
2016-03-14 21:50:00 +00:00
Tobias Bosch
cb38d72ff4
feat(shadow_css): support /deep/
and >>>
...
Fixes #7562
Closes #7563
2016-03-11 22:14:26 +00:00
Matias Niemelä
b72bab49aa
feat(core): introduce a CSS lexer/parser
2016-03-11 13:54:01 -08:00
Alex Eagle
127fbfd5a6
Revert "feat(core): introduce a CSS lexer/parser"
...
This reverts commit 293fa5505b9f3d6ef8c3208f5dc8476243aaadc9.
The rebased commit broke CI: https://travis-ci.org/angular/angular/jobs/115388814
2016-03-11 11:14:58 -08:00
Matias Niemelä
293fa5505b
feat(core): introduce a CSS lexer/parser
2016-03-11 10:42:29 -08:00
Misko Hevery
14f0e9ada8
chore: fix DDC errors / warnings
...
Closes #7195
2016-03-08 22:17:32 +00:00
PatrickJS
2c7c3e3c69
feat(TAG_DEFINITIONS): include <meta> and <base>
...
needed to parse index.html as a component template
Closes #7455
2016-03-08 01:03:20 +00:00
Vikram Subramanian
b857fd1eeb
Revert "feat(transformers): collect provider information"
...
This reverts commit 81beb1c7888622881f79453ee1a411bc3f88501f.
Broke Google3.
2016-03-04 13:51:26 -08:00
vsavkin
81beb1c788
feat(transformers): collect provider information
2016-03-04 01:19:25 -08:00
Chuck Jazdzewski
19a08f3a43
feat(compiler): Added spans to HTML parser errors
...
Allows using the HTML parser in contexts errors are reported in a development tool such as an editor.
2016-03-03 22:51:57 +00:00
vsavkin
39b6e0efba
feat(transformers): collect information for CompileDiDependencyMetadata
2016-03-01 13:28:36 -08:00
vsavkin
ebe531bf92
feat(transformers): collect data needed for the template compiler
...
Closes #7299
2016-02-26 17:56:40 +00:00
Victor Berchet
c6afea61f1
fix(DomRenderer): correctly handle namespaced attributes
2016-02-19 19:23:46 -05:00
Alex Eagle
265703b950
fix(typing): Remove re-export of the Promise built-in type.
...
Instead, ts2dart can add the 'dart:async' import whenever
Promise is used.
Fixes #6468
2016-02-12 20:45:41 -08:00
Brian Ford
efb89b83e1
Revert "fix(DomRenderer): correctly handle namespaced attributes"
...
This reverts commit 61cf499b0b6bb759bad6251319c2f5722445f855.
2016-02-11 13:44:16 -08:00
Brian Ford
3d96c2337f
Revert "feat(svg): Provide support for SVG foreignObject by adding xhtml namespace"
...
This reverts commit eb688f2c8e352558b50d9fdb22ea639dc622d09f.
2016-02-11 13:39:02 -08:00
Gion Kunz
eb688f2c8e
feat(svg): Provide support for SVG foreignObject by adding xhtml namespace
...
Closes #6192
2016-02-10 23:23:34 +00:00
Victor Berchet
61cf499b0b
fix(DomRenderer): correctly handle namespaced attributes
...
Closes #6363
2016-02-10 22:34:13 +00:00
vsavkin
231773ea76
fix(compiler): use event names for matching directives
...
Closes #6870
2016-02-09 13:16:08 -08:00
Igor Minar
b86829f492
revert: feat(transformers): collect information about di dependencies and providers
...
This reverts commit 86c40f84741c184123f6e96c87d932e4804e7add.
Reason: new issues were discovered during the g3sync. @vsavkin is working on fixing them.
2016-02-08 12:15:03 -08:00
vsavkin
86c40f8474
feat(transformers): collect information about di dependencies and providers
2016-02-05 21:56:33 +00:00
Yegor Jbanov
db87baeb98
fix(ddc): router, compiler, web worker fixes for DDC
...
Also enable DDC checks across all non-web worker playground apps. We are
now down to 2 DDC errors across all of them. The remaining two need to be
fixed in package:analyzer, not in angular.
BREAKING CHANGE:
- there's a chance of breakage as router's Instruction constructor
signature changed.
Closes #6693
2016-01-27 02:30:20 +00:00
Tobias Bosch
0ae77753f3
fix(core): always remove DOM listeners and stream subscriptions
...
This is needed to prevent memory leaks. The DOM
listeners don’t need to be removed for simple examples,
but a big internal app shows memory leaks because of them.
BREAKING CHANGE:
- `Renderer.listen` now has to return a function that
removes the event listener.
2016-01-26 07:37:31 -08:00
Victor Berchet
a24ee6add4
fix(HtmlLexer): fix for unicode chars
...
fixes #6036
Closes #6061
2016-01-21 23:45:41 +00:00
Lina Lu
9b3a548f6f
docs(template_parser.ts): typo
2016-01-19 10:58:04 -08:00
Tobias Bosch
eda4c3eb4c
fix(template_compiler): Fix erroneous cycle detection
...
Before, the check for cycles was wrong and lead to false positives.
Fixes #6404
Closes #6474
2016-01-14 23:08:30 +00:00
Tobias Bosch
7ae23adaff
feat(core): speed up view creation via code gen for view factories.
...
BREAKING CHANGE:
- Platform pipes can only contain types and arrays of types,
but no bindings any more.
- When using transformers, platform pipes need to be specified explicitly
in the pubspec.yaml via the new config option
`platform_pipes`.
- `Compiler.compileInHost` now returns a `HostViewFactoryRef`
- Component view is not yet created when component constructor is called.
-> use `onInit` lifecycle callback to access the view of a component
- `ViewRef#setLocal` has been moved to new type `EmbeddedViewRef`
- `internalView` is gone, use `EmbeddedViewRef.rootNodes` to access
the root nodes of an embedded view
- `renderer.setElementProperty`, `..setElementStyle`, `..setElementAttribute` now
take a native element instead of an ElementRef
- `Renderer` interface now operates on plain native nodes,
instead of `RenderElementRef`s or `RenderViewRef`s
Closes #5993
2016-01-05 08:56:46 -08:00
Victor Berchet
9a70f1a1d9
fix(TemplateParser): do not match on attrs that are bindings
...
Closes #5914
2015-12-24 14:44:16 +00:00
flyyang
9276dad42c
docs: fix some typos in comments and strings
...
Couple of typos fixed:
- occuring -> occurring
- imlement -> implement
- idenitifer -> identifer
etc...
Closes #5943
2015-12-17 22:57:43 +00:00
Alex Rickabaugh
80a5e47e61
docs(*): Document a lot more symbols that are missing comments in our generated docs.
2015-12-15 03:04:48 +00:00
Victor Berchet
5a04ffec3e
refactor(Directive): drop moduleId
...
moduleId is only used by components to resolve urls.
Directives have no templates and do not need moduleId.
Closes #5873
2015-12-15 01:20:56 +00:00
Georgios Kalpakas
1607ef8782
refactor(HtmlLexer): process carriage returns in one pass
...
Closes #5867
2015-12-14 20:17:06 +00:00
Jeff Cross
a885f37dfa
fix(web_workers): remove unnecessary setup module and AppRootUrl
...
Since AppRootUrl is removed, the logic for extending and emitting
the root url as part of the setup seems unnecessary.
BREAKING CHANGES:
The setupWebWorker function exported from
angular2/platform/worker_app no longer returns a promise of providers,
but instead synchronously returns providers.
Related to #5815
Closes #5820
2015-12-12 00:58:56 +00:00
Jeff Cross
ed2c25eb2f
fix(compiler): remove AppRootUrl
...
Related to #5815
This should not break anything because AppRootUrl wasn't actually
being used by the compiler anymore.
2015-12-12 00:58:56 +00:00
Tim Blasi
92ddc62bed
fix(styles): Escape \r characters in compiled text
...
Closes #5772
Closes #5835
2015-12-11 19:48:43 +00:00
Victor Berchet
080469f8e6
fix(HtmlParser): allow ng-content elements regardless the namespace
...
relates to #5547
Closes #5745
2015-12-11 01:36:48 +00:00
Victor Berchet
7c13372721
fix(TemplateParser): match element and attributes regardless the namespace
2015-12-11 01:36:48 +00:00
Victor Berchet
9e44dd85ad
feat(camelCase Angular): legacy template transformer
2015-12-09 19:59:40 -08:00
Victor Berchet
da9b46a071
feat: camelCase Angular (kebab-case removal)
...
BREAKING CHANGE:
Angular is now fully camel case.
Before:
<p *ng-if="cond">
<my-cmp [my-prop]="exp">
<my-cmp (my-event)="action()">
<my-cmp [(my-prop)]="prop">
<input #my-input>
<template ng-for #my-item [ng-for-of]=items #my-index="index">
After
<p *ngIf="cond">
<my-cmp [myProp]="exp">
<my-cmp (myEvent)="action()">
<my-cmp [(myProp)]="prop">
<input #myInput>`,
<template ngFor="#my-item" [ngForOf]=items #myIndex="index">
The full details are found in [angular2/docs/migration/kebab-case.md](https://github.com/angular/angular/blob/master/modules/angular2/docs/migration/kebab-case.md )
2015-12-09 19:59:40 -08:00
Igor Minar
51cb7586e0
build(npm): update to typescript@1.7.3 + fix broccoli-typescript + fix src
2015-12-10 01:32:44 +00:00
Matias Niemelä
28860d35b2
feat(core): provide support for relative assets for components
...
Assets defined for `templateUrl` and `styleUrls` can now be loaded
in relative to where the component file is placed so long as the
`moduleId` is set within the component annotation.
Closes #5634
2015-12-09 16:28:49 -08:00
Matias Niemelä
5f0ce30ee6
revert: feat(core): provide support for relative assets for components
2015-12-09 16:26:42 -08:00
Matias Niemelä
db096a5e22
feat(core): provide support for relative assets for components
...
Assets defined for `templateUrl` and `styleUrls` can now be loaded
in relative to where the component file is placed so long as the
`moduleId` is set within the component annotation.
Closes #5634
Closes #5634
2015-12-09 22:04:00 +00:00
Victor Berchet
1f35048d54
feat(TemplateParser): allow template elements regardless the namespace
...
Closes #5703
2015-12-08 17:46:14 +00:00
Victor Berchet
eb0ea931d0
fix(HtmlParser): ignore LF immediately following pre, textarea & listing
...
fixes #5630
Closes #5688
2015-12-08 02:39:17 +00:00
Victor Berchet
47f1d12731
fix(HtmlLexer): tag name must follow "<" without space
...
see http://www.w3.org/TR/html5/syntax.html#tag-open-state
2015-12-08 02:39:17 +00:00
Victor Berchet
aecf68117a
feat(HtmlLexer): allow "<" in text tokens
...
fixes #5550
2015-12-08 02:39:17 +00:00
Victor Berchet
3a438615c3
fix(HtmlParser): Do not add parent element for template children
...
fixes #5638
2015-12-08 02:39:17 +00:00
Victor Berchet
9850e68703
fix(HtmlLexer): handle CR in input stream per HTML spec
...
fixes #5618
Closes #5629
2015-12-08 02:18:20 +00:00