We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get an error from the second run of change detection in development mode but bindings do not change so I suspect it might be a bug.
Here is the plunk;
http://plnkr.co/edit/CXQq2lAriwZuzYZoMF3D?p=info
Tester simple creates an embedded view from a template element and sets a local variable.
import {Component,ElementRef,AfterViewInit,TemplateRef,ContentChild,ViewContainerRef,EmbeddedViewRef} from 'angular2/core'; @Component({ selector: 'p-tester', template: '' }) export class Tester { @ContentChild(TemplateRef) tmpl: TemplateRef; constructor(private viewContainer: ViewContainerRef) {} ngAfterViewInit() { let view = this.viewContainer.createEmbeddedView(this.tmpl); view.setLocal('\$implicit', 'Optimus'); } }
Using it throws the error;
<div> <p-tester> <template #name> {{name}} </template> </p-tester> </div>
The text Optimus is displayed fine but console has the error.
The text was updated successfully, but these errors were encountered:
According to @vsavkin, this is a legit bug.
Sorry, something went wrong.
obsolete
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
No branches or pull requests
I get an error from the second run of change detection in development mode but bindings do not change so I suspect it might be a bug.
Here is the plunk;
http://plnkr.co/edit/CXQq2lAriwZuzYZoMF3D?p=info
Tester simple creates an embedded view from a template element and sets a local variable.
Using it throws the error;
The text Optimus is displayed fine but console has the error.
The text was updated successfully, but these errors were encountered: