refact(app): use recommended `controller as` syntax

Updated site controllers and directives to use controller as syntax

Closes #84
Closes #135
This commit is contained in:
Peter Bacon Darwin 2015-11-17 09:52:12 +00:00
parent c304aedb04
commit 248f4c91a5
1 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@ article(class="l-content-small grid-fluid docs-content")
br br
br br
table(ng-repeat='section in cheatsheet' ng-cloak) table(ng-repeat='section in appCtrl.cheatsheet' ng-cloak)
tr tr
th {{section.name}} th {{section.name}}
th(ng-bind-html="getSafeHtml(section.description)") th(ng-bind-html="appCtrl.getSafeHtml(section.description)")
tr(ng-repeat='child in section.items') tr(ng-repeat='child in section.items')
td td
code(bold='child.bold') {{child.syntax}} code(bold='child.bold') {{child.syntax}}
td(ng-bind-html="getSafeHtml(child.description)") td(ng-bind-html="appCtrl.getSafeHtml(child.description)")