title: is it an anti-pattern using viewmodel.myData = myData in activity or fragment
body: <p>I'm developing android apps.
  Sometimes I use the viewmodel like this</p>
  <pre><code>viewmodel.myData = myData
  </code></pre>
  <p>because I can't use the <code>setMyData(myData: MyData)</code> in activity or fragment</p>
  <p>But someone told me don't use like that way.
  make a new function and set that data.
  So I only could make the function like this <code>fun setMyData2(myData: MyData)</code> in viewmodel.</p>
  <p>I want to know <code>viewmodel.myData = myData</code> is an antipattern in activity or fragment</p>