mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Added IRepeatScope
This commit is contained in:
38
angularjs/angular.d.ts
vendored
38
angularjs/angular.d.ts
vendored
@@ -584,6 +584,44 @@ declare module ng {
|
||||
}
|
||||
|
||||
interface IScope extends IRootScopeService { }
|
||||
|
||||
/**
|
||||
* $scope for ngRepeat directive.
|
||||
* see https://docs.angularjs.org/api/ng/directive/ngRepeat
|
||||
*/
|
||||
interface IRepeatScope extends IScope {
|
||||
|
||||
/**
|
||||
* iterator offset of the repeated element (0..length-1).
|
||||
*/
|
||||
$index: number;
|
||||
|
||||
/**
|
||||
* true if the repeated element is first in the iterator.
|
||||
*/
|
||||
$first: boolean;
|
||||
|
||||
/**
|
||||
* true if the repeated element is between the first and last in the iterator.
|
||||
*/
|
||||
$middle: boolean;
|
||||
|
||||
/**
|
||||
* true if the repeated element is last in the iterator.
|
||||
*/
|
||||
$last: boolean;
|
||||
|
||||
/**
|
||||
* true if the iterator position $index is even (otherwise false).
|
||||
*/
|
||||
$even: boolean;
|
||||
|
||||
/**
|
||||
* true if the iterator position $index is odd (otherwise false).
|
||||
*/
|
||||
$odd: boolean;
|
||||
|
||||
}
|
||||
|
||||
interface IAngularEvent {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user