angular.io
angular.io copied to clipboard
Route data's symbol properties are lost during JIT
I'm submitting a ... (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
- Add data with symbol property key to route
- Inject ActivatedRoute to component
- Check data on the route
- Property with symbol key is missing
Expected behavior
Properties with symbol key will be preserved as ordinary properties.
Minimal reproduction of the problem with instructions
Check console of this plunker
What is the motivation / use case for changing the behavior? Ability to use Symbol properties in route data
- Angular version: 2.3.1
- Browser: [Chrome 55]
- Language: [TypeScript 2.0]
Created from angular/angular#13587