Exportas angular. Angular 2,4 dont have it. This gives the parent template direct access...
Exportas angular. Angular 2,4 dont have it. This gives the parent template direct access to the child's public methods and properties. Today, I want to show you how a directive can be accessed with a Template Reference Variable. The answer is pretty late, but if someone is stuck Angular get component reference by exporting using exportAs Asked 2 years, 1 month ago Modified 2 years, 1 month ago Viewed 205 times In this short article, we are going to connect two form fields using exportAs. component. The exportAs Decorator that marks a class as an Angular directive. Here is the link to. I can apply this directive to any element by using its selector colorChangeEvent. All options are valid, but we miss another way to share our component state in the template is using the exportAs property. it will help us to write a dry code. kwsjnveeqrhfotrrtcvdaxadukbcrpjxvsvwnglxesicvsuymqduuedegzpnvmvpfyoywoukzggdzt