Anyone know how to access a form inside a modal? I accessed it with $scope.form by adding name="$parent.form" to the form tag in the modal in the alpha, but I can’t figure out how to access it in the beta.
I don’t think you actually CAN do it anymore. I think we’re stuck with doing this in directives only now with all the scope changes.
See my question here:
Well I’m lost too. You “used” to be able to access the form controller from the controller. However, I can’t get it to work at all anymore - even when using $parent.
@mhartington : Do you know of something that would cause this? Did AngularJS change to prevent it?
See : http://codepen.io/calendee/pen/jKFhp?editors=101
I “should” be able to access $scope.testForm from the controller, but can’t.
Then see these types of questions:
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
I got mine working again. I had to add name="$parent.$parent.$parent.form" to the form. Lots of $parent objects lol, but it worked.