I've recently found the controllerAs syntax and I'm wondering if it precludes the need for wrapping your scope variables in objects in order to get the reference.
Sorry I'm probably not asking clearly but what I mean is are both of the following declarations as safe as each other or should I still use a model object when using controllerAs to avoid issues with nested scopes?
Old method -
$scope.model = {
myData: "test"
}
<div ng-controller="myController">
<input ng-model="model.test" />
</div>
ControllerAs -
$scope.myData = "test"
<div ng-controller="myController as myC">
<input ng-model="myC.test" />
</div>