Create inline controller and pass $scope data.