true if the iterator position $index is even (otherwise false).
true if the repeated element is first in the iterator.
iterator offset of the repeated element (0..length-1).
true if the repeated element is last in the iterator.
true if the repeated element is between the first and last in the iterator.
true if the iterator position $index is odd (otherwise false).
Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners.
The event life cycle starts at the scope on which $broadcast was called. All listeners listening for name event on this scope get notified. Afterwards, the event propagates to all direct and indirect scopes of the current scope and calls all registered listeners along the way. The event cannot be canceled.
Any exception emitted from the listeners will be passed onto the $exceptionHandler service.
Event name to broadcast.
Optional one or more arguments which will be passed onto the event listeners.
Dispatches an event name upwards through the scope hierarchy notifying the registered $rootScope.Scope listeners.
The event life cycle starts at the scope on which $emit was called. All listeners listening for name event on this scope get notified. Afterwards, the event traverses upwards toward the root scope and calls all registered listeners along the way. The event will stop propagating if one of the listeners cancels it.
Any exception emitted from the listeners will be passed onto the $exceptionHandler service.
Event name to emit.
Optional one or more arguments which will be passed onto the event listeners.
Call this method to determine if this scope has been explicitly suspended. It will not tell you whether an ancestor has been suspended. To determine if this scope will be excluded from a digest triggered at the $rootScope, for example, you must check all its ancestors:
function isExcludedFromDigest(scope) {
while(scope) {
if (scope.$isSuspended()) return true;
scope = scope.$parent;
}
return false;
Be aware that a scope may not be included in digests if it has a suspended ancestor,
even if $isSuspended()
returns false.
true if the current scope has been suspended.
Listens on events of a given type. See $emit for discussion of event life cycle.
The event listener function format is: function(event, args...).
Event name to listen on.
Function to call when the event is emitted.
Listens on events of a given type. See $emit for discussion of event life cycle.
The event listener function format is: function(event, args...).
Resume watchers of this scope subtree in case it was suspended.
See {$rootScope.Scope#$suspend} for information about the dangers of using this approach.
Suspend watchers of this scope subtree so that they will not be invoked during digest.
This can be used to optimize your application when you know that running those watchers is redundant.
Warning
Suspending scopes from the digest cycle can have unwanted and difficult to debug results. Only use this approach if you are confident that you know what you are doing and have ample tests to ensure that bindings get updated as you expect.
Some of the things to consider are:
$apply()
or $rootScope.$digest()
.$suspend()
on an already suspended scope is a no-op.$resume()
on a non-suspended scope is a no-op.$digest()
directly on a descendant of a suspended scope will still run the watchers
for that scope and its descendants. When digesting we only check whether the current scope is
locally suspended, rather than checking whether it has a suspended ancestor.$resume()
on a scope that has a suspended ancestor will not cause the scope to be
included in future digests until all its ancestors have been resumed.$q
deferreds and $http
calls, trigger $apply()
against the $rootScope
and so will still trigger a global digest even if the promise was
initiated by a component that lives on a suspended scope.Generated using TypeDoc
$scope for ngRepeat directive. see https://docs.angularjs.org/api/ng/directive/ngRepeat