Angular: ng-include scope

http://angularjs.org/

HTML

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>



<div ng-controller="HomeCtrl as ctrl">

    <div>{{ctrl.lines}}</div>
    
</div>

JavaScript

var myApp = angular.module('myApp', []);

function HomeCtrl($scope, $http) {
    
    var vm = this;
    vm.lineText = '';
    vm.lines = 'hello';
    
    vm.callB = callB;
    
    vm.addLine = function(lineText) {
        vm.lines.push({
            text: vm.lineText
        });
        vm.lineText = '';
    };
    

    
   
}