First and foremost, the plunker: http://plnkr.co/edit/v1uTz5
This is a working demo of the issue I am running into.
I have a ng-include
to include a partial.
Inside the partial I have an text input with ngModel
AND directive.
The model updates accordingly inside the include, but any interaction outside the include is ignored. The {{test}}
outside the include doesn't update, but the {{test}}
inside does.
The directive, when called, handles the enter
key and calls the correct scope and function. However, the $scope.test
variable has never been updated, but $scope.testFinal
is updated and the ng-include
template renders it appropriately. Trying to reset the $scope.test
model does not work either.
Am I missing something here? Or is this a bug with the directive or with the ng-include
?