What does the following line of code do?
fun NotesApp(noteViewModel: NoteViewModel = viewModel()) {
The default parameter confuses me. The class, which inherits from ViewModel, is called NoteViewModel. Wouldn't the default parameter be: NoteViewModel()?
But it works nevertheless. How is that possible?