1👍
✅
Move ng-controller="LineCtrl"
so it’s outside of the button element, otherwise you will have the wrong scope involved.
Source:stackexchange.com