I have started my journey in Angular 2 and lots of friends no longer exist.
Is one of the very often used directive ng-init by myself for declaring
local variables is not the same as #?
I got error for writing code like:
```
<div #showSearch="false">
<a (click)="showSearch = !showSearch"> Click To toogle </a>
<div class="search-form" *ngIf="showSearch"> ... </div>
</div>
```
```
EXCEPTION: Template parse errors:
There is no directive with "exportAs" set to "false" ("
<div [ERROR ->]#showSearch="false"
```
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.