How to two-way bind my own RxJS Subject to an [(ngModel)]?

前端 未结 6 630
一生所求
一生所求 2021-01-31 15:42

Is there a short and simple way to pass an RxJS Subject or BehaviorSubject to an an Angular 2 directive for two-way binding? The long way to do it would be as follows:



        
6条回答
  •  醉酒成梦
    2021-01-31 16:30

    This is a simple solution, as you said in your question. (Nothing simpler than what you already provided)

提交回复
热议问题