angular.scope.$bind

Work In Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

Binds a function fn to the current scope. See: angular.bind.

         var scope = angular.scope();
         var fn = scope.$bind(function(){
           return this;
         });
         expect(fn()).toEqual(scope);
       

Usage

angular.scope.$bind(fn);

Parameters