<commit_before># angularjs-toaster

A toaster service for angular JS web application.

Toaster expects you to be using ui-router library and to have a
dedicated toaster view for it to render itself.

## Usage

Import toaster as a module dependency

```coffee
angular.module('my_app', ['toaster'])
```

in your index.html make sure you have a ui-view. Something like:

```jade
doctype html

html(
    lang = "en"
        ng-app = "app"
    )

    head
        each script in scripts
            script(src="/#{script}")
    body
        div(ui-view="content")
        div(ui-view="toaster")
```<commit_msg>doc(readme): Add ui-router process<commit_after># angularjs-toaster

A toaster service for angular JS web application.

Toaster expects you to be using ui-router library and to have a
dedicated toaster view for it to render itself.

## Usage

Import toaster as a module dependency

```coffee
angular.module('my_app', ['toaster'])
```

in your index.html make sure you have a ui-view. Something like:

```jade
doctype html

html(
    lang = "en"
        ng-app = "app"
    )

    head
        each script in scripts
            script(src="/#{script}")
    body
        div(ui-view="content")
        div(ui-view="toaster")
```

Add the controller to your ui-router

```coffee
angular.module('my_app')
  .config (
    $stateProvider
    $urlRouterProvider
  ) ->
    $stateProvider.state 'root',
      abstract: true
      url: '/'

      views:
        'dialog@':
          controller: 'dialogCtrl'
          templateUrl: 'dialog/template/dialog.html'

        'toaster@':
          controller: 'toasterCtrl'
          templateUrl: 'toaster/template/toaster.html'
```
{'fraction_non_alphanumeric': 0.11483253588516747, 'fraction_numerical': 0.0, 'mean_word_length': 2.7095343680709534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3123355', 'n_tokens_mistral': 528, 'n_tokens_neox': 510, 'n_words': 166}