SyntaxFix
Write A Post
Hire A Developer
Questions
This is because of ng-include which creates a new child scope, so $scope.lineText isn’t changed. I think that this refers to the current scope, so this.lineText should be set.
ng-include
$scope.lineText
this
this.lineText