Binds a function fn to the current scope. See: angular.bind.
fn
angular.bind
var scope = angular.scope(); var fn = scope.$bind(function(){ return this; }); expect(fn()).toEqual(scope);
angular.scope.$bind(fn);
fn – {function()} –
Function to be bound.