var app = angular.module(“myApp”);
app.controller(“myController”, function()
{
this.title = ‘scopeless Controller Test’;
this.name = ‘Anupam’;
this.sayHello = function()
{
alert(‘Hello ‘ + this.name);
}
});
var app = angular.module(“myApp”);
app.controller(“myController”, function()
{
this.title = ‘scopeless Controller Test’;
this.name = ‘Anupam’;
this.sayHello = function()
{
alert(‘Hello ‘ + this.name);
}
});