ng-repeat-start and ng-repeat-end

Description

The following code shows how to use ng-repeat-start and ng-repeat-end.

Example


<!--   w w w. ja va  2  s .  c o m-->
<!DOCTYPE html>
<html  ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
<script type='text/javascript'>
function DemoCtrl($scope) {
    $scope.definitions = [{
        title: 'Foo',
        text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.'
    }, {
        title: 'Bar',
        text: 'Iste aperiam nesciunt enim dolorum dolores labore necessitatibus dolor?'
    }]
}
</script>
</head>
<body>
  <dl ng-app="" ng-controller="DemoCtrl">
  <dt ng-repeat-start="definition in definitions" ng-bind="definition.title"></dt>
  <dd ng-repeat-end="" ng-bind="definition.text"></dd>
</dl>
</body>
</html>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities