With a model and a viewer in hand, and attached to global variables for the sake of experimentation, you can attach the viewer to the model using the model: method, which is defined for the Model class:
model:
Model
V model: M.