I am trying to make a view that simply takes in an email and password via ng-model
then passes it to a login function in the controller via ng-click
. I can’t seem to get it working correctly and past forum posts about scope inheritance and $parent
don’t seem to solve the issue for me.
the ng-model
is under an ion-content
and a label
which is why my assumptions lead to scope inheritance issues.
here is a plunker where I attempted to re-create my issue: http://plnkr.co/edit/JFlO64xi4nG84xqFDYsv?p=info
I have tried $parent.user.email
but this also doesn’t work. Can someone please help me figure out what is going wrong here?