I have started using AngularJs and I need some help with controller model data sharing.
I have this html template:
<input ng-model="form.search">
I know that you can pass it with a function like FormCtrl.data(form.search). However I would like to know if there are other ways getting model data in controller.
$scope.form.search?ModalInstanceCtrlhas the access to $scope whatever is on the modal form. But it looks like I need to apply other controller on the form to access the the $scope. Thanks guys.