<commit_before># angular-scroll
Scrolling the Angular way

## [Demo](http://gavr-pavel.github.io/angular-scroll/demo.html)

## Usage

##### scroll-root and scroll-item directives
```html
<!--
scroll-root attribute tells that element is scrollable;
    the scrollTo method is added to the scope.
scroll-item="someId" attribute tells that scrollable element
    can be scrolled to it's position by calling scrollTo('someId').
-->
<div class="scrollable" scroll-root>
    <div scroll-item="first_block">
        ...
        <button ng-click="scrollTo('second_block')">To the next block!</button>
    </div>
    ...
    <div scroll-item="second_block">
        ...
        <button ng-click="scrollTo('one_more_block')">To the next block!</button>
    </div>
    <div scroll-item="one_more_block">
        ...
        <button ng-click="scrollTo('first_block')">Back to start</button>
    </div>
</div>
```

<commit_msg>Describe how import module in app<commit_after># angular-scroll
Scrolling the Angular way

## [Demo](http://gavr-pavel.github.io/angular-scroll/demo.html)

## Usage

First, you have to include the module in your app:
```javascript
var app = angular.module('App', ['duScroll']);
```

##### scroll-root and scroll-item directives
```html
<!--
scroll-root attribute tells that element is scrollable;
    the scrollTo method is added to the scope.
scroll-item="someId" attribute tells that scrollable element
    can be scrolled to it's position by calling scrollTo('someId').
-->
<div class="scrollable" scroll-root>
    <div scroll-item="first_block">
        ...
        <button ng-click="scrollTo('second_block')">To the next block!</button>
    </div>
    ...
    <div scroll-item="second_block">
        ...
        <button ng-click="scrollTo('one_more_block')">To the next block!</button>
    </div>
    <div scroll-item="one_more_block">
        ...
        <button ng-click="scrollTo('first_block')">Back to start</button>
    </div>
</div>
```


{'fraction_non_alphanumeric': 0.15776081424936386, 'fraction_numerical': 0.0, 'mean_word_length': 3.3399558498896247, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2663958', 'n_tokens_mistral': 617, 'n_tokens_neox': 598, 'n_words': 160}