docs($compile): add controllerAs example

This commit is contained in:
Wesley Cho
2014-03-19 23:54:58 -04:00
committed by Brian Ford
parent b93ca855c0
commit 726ffdc50f

View File

@@ -64,6 +64,7 @@
* restrict: 'A',
* scope: false,
* controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
* controllerAs: 'stringAlias',
* require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
* compile: function compile(tElement, tAttrs, transclude) {
* return {