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 7665497a53
commit ec93f94cc9

View file

@ -647,10 +647,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.bind('click', toggle);