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:
parent
c304aedb04
commit
248f4c91a5
|
@ -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)")
|
||||||
|
|
Loading…
Reference in New Issue