diff options
| author | Matias Niemelä | 2013-04-29 15:20:10 -0400 |
|---|---|---|
| committer | Igor Minar | 2013-04-29 17:43:14 -0400 |
| commit | b3a62b2e19b1743df52034d4d7a0405e6a65f925 (patch) | |
| tree | 5ba48fb0f0c49e56302e0ddb968d45e1046548c7 /src | |
| parent | 400f9360bb2f7553c5bd3b1f256a5f3db175b7bc (diff) | |
| download | angular.js-b3a62b2e19b1743df52034d4d7a0405e6a65f925.tar.bz2 | |
feat(ngdocs): support for HTML table generation from docs code
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/bootstrap.js | 8 | ||||
| -rw-r--r-- | src/ng/animator.js | 12 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/bootstrap/bootstrap.js b/src/bootstrap/bootstrap.js index d21ed941..c9719b0c 100644 --- a/src/bootstrap/bootstrap.js +++ b/src/bootstrap/bootstrap.js @@ -143,6 +143,14 @@ directive.tabbable = function() { }; }; +directive.table = function() { + return { + restrict: 'E', + link: function(scope, element, attrs) { + element[0].className = 'table table-bordered table-striped code-table'; + } + }; +}; directive.tabPane = function() { return { diff --git a/src/ng/animator.js b/src/ng/animator.js index d28ce158..536c93c1 100644 --- a/src/ng/animator.js +++ b/src/ng/animator.js @@ -15,11 +15,13 @@ * * Below is a more detailed breakdown of the supported callback events provided by pre-exisitng ng directives: * - * * {@link ng.directive:ngRepeat#animations ngRepeat} — enter, leave and move - * * {@link ng.directive:ngView#animations ngView} — enter and leave - * * {@link ng.directive:ngInclude#animations ngInclude} — enter and leave - * * {@link ng.directive:ngSwitch#animations ngSwitch} — enter and leave - * * {@link ng.directive:ngShow#animations ngShow & ngHide} - show and hide respectively + * | Directive | Supported Animations | + * |========================================================== |====================================================| + * | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move | + * | {@link ng.directive:ngView#animations ngView} | enter and leave | + * | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave | + * | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave | + * | {@link ng.directive:ngShow#animations ngShow & ngHide} | show and hide | * * You can find out more information about animations upon visiting each directive page. * |
