7 Commits

Author SHA1 Message Date
Rado Kirov
c95437f15d build(bazel): Turning on strictPropertyInitialization for Angular. ()
All errors for existing fields have been detected and suppressed with a
`!` assertion.

Issue/24571 is tracking proper clean up of those instances.

One-line change required in ivy/compilation.ts, because it appears that
the new syntax causes tsickle emitted node to no longer track their
original sourceFiles.

PR Close 
2018-06-25 07:57:13 -07:00
Victor Berchet
28058b784b fix(compiler): fix support for html-like text in translatable attributes ()
PR Close 
2018-03-29 08:58:27 -07:00
Victor Berchet
cb5090cdc8 fix(compiler): fix ICU select messages to use male/female/other ()
related to 

PR Close 
2018-01-23 16:32:23 -08:00
Miško Hevery
fcadbf4bf6 perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.

Code savings for HelloWorld using Closure:

Reflective: bundle.js:  105,864(34,190 gzip)
    Static: bundle.js:  154,889(33,555 gzip)
                            645( 2%)

BREAKING CHANGE:

`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.

Example:
Before:
```
[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

```

After:
```
[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```

NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.

Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.

DEPRECATION:

- `ReflectiveInjector` is now deprecated as it will be remove. Use
  `Injector.create` as a replacement.

closes 
2017-08-07 15:42:34 -07:00
Olivier Combe
b3085e96c2 feat(compiler): add representation of placeholders to xliff & xmb
Closes 
2017-07-25 15:58:53 -05:00
Olivier Combe
a3a54299af fix(compiler): allow numbers for ICU message cases in lexer ()
Closes 
Fixes 
2017-07-20 17:41:54 -05:00
Marc Laval
95afaf495b test(compiler): refactor i18n integration test 2017-03-24 14:35:10 -07:00