The CreateCtrl controller is not seeing the ng-model of the input of my form. I can pass values from the controller to the view but I'm not getting the reverse. Where am I going wrong?
Controller:
.controller('CriarCtrl', function ($scope) {
$scope.criarDemanda = function () {
console.log($scope.name);
}
})
View:
<input type="text" ng-model="name" name="nome" required />
<button class="button button-assertive button-block activated" ng-click="criarDemanda()">Enviar</button>