Skip to content

Commit

Permalink
Added IRepeatScope
Browse files Browse the repository at this point in the history
  • Loading branch information
Jukka Hyvärinen committed Feb 10, 2015
1 parent 35fffaa commit 01d3cc0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions angularjs/angular.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 01d3cc0

Please sign in to comment.