<commit_before># templateView Directive
AngularJS directive for dyncamically switching templates based on a model change

#### Usage
Add a `<script>` include for `templateView.directive.js` to your index file.

``` html
<div template-view
   	 watch="demo.selected"
	 options="demo.options">
</div>
```

Provide an options model in your controller to pass your ControllerAs name and the controller's scope.

``` javascript
var demo = this;

// Dropdown Options
demo.dropdown = [
    {'name': 'Chapter One', 'tmpl': 'tmpl/chOne.html'},
    {'name': 'Chapter Two', 'tmpl': 'tmpl/chTwo.html'},
    {'name': 'Chapter Three', 'tmpl': 'tmpl/chThree.html'}
];
demo.selected = demo.dropdown[0];

// TemplateView Options
demo.options = [{
    'as': 'demo',
    'context': demo
}];
```

#### Examples
See the related blog post @ <a href="http://www.codaform.net">Codaform</a>.
See the code in action @ <a href="http://plnkr.co/edit/66SwNeMdVx15YgbPZgng?p=preview">Plunker</a>
<commit_msg>add br in readme<commit_after># templateView Directive
AngularJS directive for dyncamically switching templates based on a model change

#### Usage
Add a `<script>` include for `templateView.directive.js` to your index file.

``` html
<div template-view
   	 watch="demo.selected"
	 options="demo.options">
</div>
```

Provide an options model in your controller to pass your ControllerAs name and the controller's scope.

``` javascript
var demo = this;

// Dropdown Options
demo.dropdown = [
    {'name': 'Chapter One', 'tmpl': 'tmpl/chOne.html'},
    {'name': 'Chapter Two', 'tmpl': 'tmpl/chTwo.html'},
    {'name': 'Chapter Three', 'tmpl': 'tmpl/chThree.html'}
];
demo.selected = demo.dropdown[0];

// TemplateView Options
demo.options = [{
    'as': 'demo',
    'context': demo
}];
```

#### Examples
See the related blog post @ <a href="http://www.codaform.net">Codaform</a></br>
See the code in action @ <a href="http://plnkr.co/edit/66SwNeMdVx15YgbPZgng?p=preview">Plunker</a>

{'fraction_non_alphanumeric': 0.16505348955680083, 'fraction_numerical': 0.005094243504839531, 'mean_word_length': 4.425414364640884, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4833750', 'n_tokens_mistral': 681, 'n_tokens_neox': 648, 'n_words': 189}