All the functions that I am making in a component are accessible to the view even the private
functions.
HTML
<p (click)="accessable(name)">{{name}}</p>
<p (click)="shouldNotBeAccessable(name)">{{name}}</p>
Component
accessable(item): void{
this.selected = item;
}
private shouldNotBeAccessable(item):void{
this.selected = item;
}
Problem
I don't want the shouldNotBeAccessable
to be accessible from the view.
Request
Is it possible to stop the function to stop being used from view? If yes then how?