Files
ionic-framework/js/ext/angular/test/nestedScroll.html
Andy Joslin 2c39a21498 feat(ionic): prefix all directives with ion-
BREAKING CHANGE: All directives are now prefixed with `ion-`.

For any directive you use, add the ionic prefix.

For example, change this HTML:

```html
<tabs>
  <tab title="home" href="/tab/home">
    <content>Hello!</content>
  </tab>
</tabs>
```

To this HTML:

```
<ion-tabs>
  <ion-tab title="home" href="/tab/home">
    <ion-content>Hello!</ion-content>
  </ion-tab>
</ion-tabs>
```
2014-02-18 16:13:00 -05:00

37 lines
968 B
HTML

<!DOCTYPE html>
<html ng-app="ionic">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="../../../../dist/css/ionic.css" />
<script src="../../../../dist/js/ionic.bundle.js"></script>
</head>
<body>
<div ng-controller="Ctrl">
<ion-header-bar title="title" type="bar-positive">
</ion-header-bar>
<ion-content has-header="true" style="background: lightblue;">
<h1>outer</h1>
<ion-scroll style="background: lightgreen; height: 200px;">
<h1>inner</h1>
<p ng-repeat="i in range">{{i}}</p>
</ion-scroll>
<p ng-repeat="i in range">{{i}}</p>
</ion-content>
</div>
<script>
function Ctrl($scope) {
$scope.range = [];
for (var i=0; i<20; i++) {
$scope.range.push(i);
}
}
</script>
</body>
</html>