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>',
// The linking function will add behavior to the template
link: function(scope, element, attrs) {
// Title element
// Title element
var title = angular.element(element.children()[0]),
// Opened / closed state
opened = true;
// Opened / closed state
opened = true;
// Clicking on title should open/close the zippy
title.on('click', toggle);