Creates a new child scope
. The new scope can optionally behave as a
controller. The parent scope will propagate the $digest()
and
$digest()
events. The scope can be removed from the scope
hierarchy using $destroy()
.
$destroy()
must be called on a scope when it is desired for
the scope and its child scopes to be permanently detached from the parent and thus stop
participating in model change detection and listener notification by invoking.
angular.scope.$new([Class], curryArguments);
Class(optional) – {function()} –
Constructor function which the scope should be applied to the scope.
curryArguments – {...*} –
Any additional arguments which are curried into the constructor. See dependency injection.
{Object}
– The newly created child scope.