view model directive example