al-controller

Overview

  • The directive makes child scope, then calls a controller, then aLight bind scope with DOM
  • input argument (not necessary): name of controller
Examples
 <div al-controller="bookCtrl"></div>
 <div al-controller="bookCtrl as book"></div>
Examples
 function bookCtrl(scope) {
 }

also you can place the controller into alight.controllers or in Scope.$ns for private controllers

Examples
 alight.controllers.bookCtrl = function(scope) {
 }
comments powered by Disqus