Example of scopeless

var app = angular.module(“myApp”);

app.controller(“myController”, function()
{

this.title = ‘scopeless Controller Test’;
this.name = ‘Anupam’;
this.sayHello = function()
{
alert(‘Hello ‘ + this.name);
}

});