Netanel Basal
1 min readAug 12, 2020

--

I know, but I prefer to explicitly say that I expose this component API to the view, and it's safe to use it. This is important, especially for open sources. Based on your opinion, it's a redundant API when we use it with components. Try to think why Angular added it also to components :)

It's not always possible to use a directive. Sometimes you need a piece of view like in the mouse example.

--

--

Netanel Basal
Netanel Basal

Written by Netanel Basal

A FrontEnd Tech Lead, blogger, and open source maintainer. The founder of ngneat, husband and father.

Responses (1)