docs(guide/directive): fix indentation in example code

Closes #4241
This commit is contained in:
mtaran-google 2013-10-02 16:20:19 -07:00 committed by Pete Bacon Darwin
parent 1691c4e9a3
commit 333e3375e0

View file

@ -682,10 +682,10 @@ Following is an example of building a reusable widget.
'</div>', '</div>',
// The linking function will add behavior to the template // The linking function will add behavior to the template
link: function(scope, element, attrs) { link: function(scope, element, attrs) {
// Title element // Title element
var title = angular.element(element.children()[0]), var title = angular.element(element.children()[0]),
// Opened / closed state // Opened / closed state
opened = true; opened = true;
// Clicking on title should open/close the zippy // Clicking on title should open/close the zippy
title.on('click', toggle); title.on('click', toggle);