maxisam/ngx-clipboard

Nothing Is Emitted on `copyResponse$` When Calling `copyFromContent` Directly

tabuckner opened this issue · 0 comments

The Readme shows an example of calling this method directly, and I see a lot of value in making that method public in the service.

As a personal preference, I am not a huge fan of putting too much stuff in my templates if I can help it.

For my use case, it is valuable to perform some sort of actions after the copy is performed. ASSUMING THIS IS ASYNCHRONOUS, it would be nice to either have copyFromContent return Promise<boolean> or have it notify subscribers on its built in public Observable.

It's there, let's use it! :D

#214