From 580b5b198be9886bcd40fe952642f3eaba322e56 Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Thu, 15 Oct 2015 14:16:35 -0700 Subject: [PATCH] adds filterable API list --- public/docs/_layout.jade | 5 +- public/docs/js/latest/api/index.jade | 37 +- public/resources/css/main.scss | 1 + public/resources/css/module/_api.scss | 99 ++ .../js/controllers/app-controller.js | 1560 ++++++++++++++++- 5 files changed, 1667 insertions(+), 35 deletions(-) create mode 100644 public/resources/css/module/_api.scss diff --git a/public/docs/_layout.jade b/public/docs/_layout.jade index 2ed94d7db7..6e532a126b 100644 --- a/public/docs/_layout.jade +++ b/public/docs/_layout.jade @@ -11,8 +11,11 @@ html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Frame if current.path[3] == 'api' - article(class="l-content-small grid-fluid docs-content") + if current.path[4] == 'index' != yield + else + article(class="l-content-small grid-fluid docs-content") + != yield else article(class="l-content-small grid-fluid docs-content") diff --git a/public/docs/js/latest/api/index.jade b/public/docs/js/latest/api/index.jade index 6a3801f3a1..9260c19186 100644 --- a/public/docs/js/latest/api/index.jade +++ b/public/docs/js/latest/api/index.jade @@ -1,19 +1,18 @@ -.callout.is-helpful - header Developer Preview - - p. - The Angular 2.0 API is currently in active development and not production ready. - This page showcases a preview of proposed methods to help further the discussion - in the development community. Please also note that examples currently use TypeScript - rather than ES5 JavaScript. If you're building a production app today, please - use Angular 1.X. - -ul.is-plain - for page, slug in public.docs[current.path[1]][current.path[2]].api - if slug != 'index' && slug != '_contents' && slug != '_data' - - - var url = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + slug - - var title = public.docs[current.path[1]][current.path[2]][current.path[3]][slug]._data["index"]["title"] - - li - != partial("../../../../_includes/_hover-card", {name: title, url: url }) +.banner + dl.api-key + dt Display: + dd.directive(ng-class='{ active: apiType === "directive" }' ng-click='setType("directive")') Directive + dd.class(ng-class='{ active: apiType === "class" }' ng-click='setType("class")') Class + dd.interface(ng-class='{ active: apiType === "interface" }' ng-click='setType("interface")') Interface + dd.function(ng-class='{ active: apiType === "function" }' ng-click='setType("function")') Function + dd.const(ng-class='{ active: apiType === "const" }' ng-click='setType("const")') Const or Enum + dd.var(ng-class='{ active: apiType === "var" }' ng-click='setType("var")') Variable + input.api-filter(placeholder='Filter', ng-model='apiFilter') +article(class="l-content-small grid-fluid docs-content") + div(ng-repeat='section in apiSections') + h3 {{ section.title }} + ul.api-list + li.api-item(ng-repeat='item in apiList[section.name] | filter: { title: apiFilter, docType: apiType }') + a(ng-href='/docs/js/latest/api/{{ section.name }}/{{ item.title }}-{{ item.docType === "directive" ? "class" : item.docType }}') + span(class='symbol {{ item.docType }}') + | {{ item.title }} diff --git a/public/resources/css/main.scss b/public/resources/css/main.scss index 1593439cdd..df89b52337 100644 --- a/public/resources/css/main.scss +++ b/public/resources/css/main.scss @@ -41,6 +41,7 @@ @import 'module/showcase'; @import 'module/statement'; @import 'module/example-title'; +@import 'module/api'; /* diff --git a/public/resources/css/module/_api.scss b/public/resources/css/module/_api.scss new file mode 100644 index 0000000000..c54100a270 --- /dev/null +++ b/public/resources/css/module/_api.scss @@ -0,0 +1,99 @@ +@mixin icon { + line-height: 14px; + &.directive:before { + content: 'D'; + background: #db4437; + } + &.class:before { + content: 'C'; + background: #4285f4; + } + &.interface:before { + content: 'I'; + background: #0097a7; + } + &.function:before { + content: 'F'; + background: #0f9d58; + } + &.const:before, + &.enum:before { + content: 'N'; + background: #757575; + } + &.var:before { + content: 'V'; + background: #9575cd; + } + &:before { + display: inline-block; + border-radius: 50%; + width: 14px; + height: 14px; + text-align: center; + color: white; + font-family: Roboto, sans-serif; + font-size: 10px; + margin-right: $unit; + float: left; + } +} + +.api-key { + dt, dd { + display: inline-block; + font-size: 14px; + font-family: Roboto, sans-serif; + padding: $unit; + } + dt { + padding-left: 0; + } + dd { + @include icon; + margin: 0 0 0 ($unit); + cursor: pointer; + &.active { + background: #d5d9dc; + border-radius: 3px; + } + } +} + +input.api-filter { + display: block; + max-width: ($unit * 100); + width: 100%; + line-height: 18px; + padding: $unit; + position: relative; + left: ($unit * -1); +} + +.docs-content { + .api-list { + list-style: none; + padding: 0 0 ($unit * 4); + overflow: hidden; + .api-item { + font-size: 14px; + font-family: Roboto, sans-serif; + margin: 0; + line-height: 14px; + padding: $unit $unit $unit 0; + float: left; + width: 33%; + min-width: 220px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + a { + text-decoration: none; + color: black; + } + .symbol { + @include icon; + } + } + } +} diff --git a/public/resources/js/controllers/app-controller.js b/public/resources/js/controllers/app-controller.js index 1a94ffb121..89f2cc2871 100644 --- a/public/resources/js/controllers/app-controller.js +++ b/public/resources/js/controllers/app-controller.js @@ -1,48 +1,1578 @@ /* -* Apllication Controller -* -*/ + * Apllication Controller + * + */ -angularIO.controller('AppCtrl', ['$scope', '$mdDialog', '$timeout', function($scope, $mdDialog, $timeout) { +angularIO.controller('AppCtrl', [ '$scope', '$mdDialog', '$timeout', function ($scope, $mdDialog, $timeout) { $scope.showDocsNav = false; $scope.showMainNav = false; - $scope.showMenu = false; + $scope.showMenu = false; // TOGGLE MAIN NAV (TOP) ON MOBILE - $scope.toggleDocsMenu = function() { + $scope.toggleDocsMenu = function () { $scope.showDocsNav = !$scope.showDocsNav; }; // TOGGLE DOCS NAV - $scope.toggleMainMenu = function() { + $scope.toggleMainMenu = function () { $scope.showMainNav = !$scope.showMainNav; }; // TOGGLE DOCS VERSION & LANGUAGE - $scope.toggleVersionMenu = function() { + $scope.toggleVersionMenu = function () { $scope.showMenu = !$scope.showMenu; }; + $scope.setType = function (type) { + if (type === $scope.apiType) $scope.apiType = ''; + else $scope.apiType = type; + }; + + $scope.apiSections = [ + { name: 'core', title: 'Core' }, + { name: 'http', title: 'HTTP' }, + { name: 'lifecycle_hooks', title: 'Lifecycle Hooks' }, + { name: 'router', title: 'Router' }, + { name: 'test', title: 'Test' } + ]; + $scope.apiType = ''; + $scope.apiFilter = ''; + + $scope.apiList = {}; + $scope.apiList.core = [ + { + "title": "APP_COMPONENT", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/application_tokens", + "docType": "const" + }, + { + "title": "APP_ID", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/render/dom/dom_tokens", + "docType": "const" + }, + { + "title": "AbstractBindingError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "AbstractControl", + "originalModule": "angular2/src/core/forms/model", + "docType": "class" + }, + { + "title": "AbstractControlDirective", + "originalModule": "angular2/src/core/forms/directives/abstract_control_directive", + "docType": "class" + }, + { + "title": "AfterContentChecked", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterContentInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterViewChecked", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterViewInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AppRootUrl", + "originalModule": "angular2/src/core/services/app_root_url", + "docType": "class" + }, + { + "title": "AppViewManager", + "originalModule": "angular2/src/core/compiler/view_manager", + "docType": "interface" + }, + { + "title": "ApplicationRef", + "originalModule": "angular2/src/core/application_ref", + "docType": "interface" + }, + { + "title": "AsyncPipe", + "originalModule": "angular2/src/core/pipes/async_pipe", + "docType": "class" + }, + { + "title": "Attribute", + "varType": "AttributeFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "AttributeFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "AttributeMetadata", + "originalModule": "angular2/src/core/metadata/di", + "docType": "class" + }, + { + "title": "Binding", + "originalModule": "angular2/src/core/di/binding", + "docType": "class" + }, + { + "title": "BindingBuilder", + "originalModule": "angular2/src/core/di/binding", + "docType": "class" + }, + { + "title": "BindingWithVisibility", + "originalModule": "angular2/src/core/di/injector", + "docType": "class" + }, + { + "title": "By", + "originalModule": "angular2/src/core/debug/debug_element", + "docType": "class" + }, + { + "title": "CORE_DIRECTIVES", + "originalModule": "angular2/src/core/directives", + "docType": "const" + }, + { + "title": "ChangeDetectionError", + "originalModule": "angular2/src/core/change_detection/exceptions", + "docType": "class" + }, + { + "title": "ChangeDetectionStrategy", + "originalModule": "angular2/src/core/change_detection/constants", + "docType": "enum" + }, + { + "title": "ChangeDetector", + "originalModule": "angular2/src/core/change_detection/interfaces", + "docType": "interface" + }, + { + "title": "ChangeDetectorRef", + "originalModule": "angular2/src/core/change_detection/change_detector_ref", + "docType": "interface" + }, + { + "title": "CheckboxControlValueAccessor", + "originalModule": "angular2/src/core/forms/directives/checkbox_value_accessor", + "docType": "directive" + }, + { + "title": "Class", + "originalModule": "angular2/src/core/util/decorators", + "docType": "function" + }, + { + "title": "ClassDefinition", + "originalModule": "angular2/src/core/util/decorators", + "docType": "interface" + }, + { + "title": "Compiler", + "originalModule": "angular2/src/core/compiler/compiler", + "docType": "interface" + }, + { + "title": "Component", + "varType": "ComponentFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "ComponentDecorator", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "ComponentFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "ComponentMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "ComponentRef", + "originalModule": "angular2/src/core/compiler/dynamic_component_loader", + "docType": "interface" + }, + { + "title": "ComponentUrlMapper", + "originalModule": "angular2/src/core/compiler/component_url_mapper", + "docType": "class" + }, + { + "title": "Control", + "originalModule": "angular2/src/core/forms/model", + "docType": "class" + }, + { + "title": "ControlArray", + "originalModule": "angular2/src/core/forms/model", + "docType": "class" + }, + { + "title": "ControlContainer", + "originalModule": "angular2/src/core/forms/directives/control_container", + "docType": "class" + }, + { + "title": "ControlGroup", + "originalModule": "angular2/src/core/forms/model", + "docType": "class" + }, + { + "title": "ControlValueAccessor", + "originalModule": "angular2/src/core/forms/directives/control_value_accessor", + "docType": "interface" + }, + { + "title": "CurrencyPipe", + "originalModule": "angular2/src/core/pipes/number_pipe", + "docType": "class" + }, + { + "title": "CyclicDependencyError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "DEFAULT_PIPES", + "varType": "Binding", + "originalModule": "angular2/src/core/pipes/default_pipes", + "docType": "const" + }, + { + "title": "DEFAULT_PIPES_TOKEN", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/pipes/default_pipes", + "docType": "const" + }, + { + "title": "DOCUMENT", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/render/dom/dom_tokens", + "docType": "const" + }, + { + "title": "DatePipe", + "originalModule": "angular2/src/core/pipes/date_pipe", + "docType": "class" + }, + { + "title": "DebugElement", + "originalModule": "angular2/src/core/debug/debug_element", + "docType": "interface" + }, + { + "title": "DecimalPipe", + "originalModule": "angular2/src/core/pipes/number_pipe", + "docType": "class" + }, + { + "title": "DefaultValidators", + "originalModule": "angular2/src/core/forms/directives/validators", + "docType": "class" + }, + { + "title": "DefaultValueAccessor", + "originalModule": "angular2/src/core/forms/directives/default_value_accessor", + "docType": "directive" + }, + { + "title": "Dependency", + "originalModule": "angular2/src/core/di/binding", + "docType": "class" + }, + { + "title": "DependencyMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "DependencyProvider", + "originalModule": "angular2/src/core/di/injector", + "docType": "interface" + }, + { + "title": "Directive", + "varType": "DirectiveFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "DirectiveDecorator", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "DirectiveFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "DirectiveMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "DirectiveResolver", + "originalModule": "angular2/src/core/compiler/directive_resolver", + "docType": "class" + }, + { + "title": "DoCheck", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "DomRenderer", + "originalModule": "angular2/src/core/render/dom/dom_renderer", + "docType": "interface" + }, + { + "title": "DynamicComponentLoader", + "originalModule": "angular2/src/core/compiler/dynamic_component_loader", + "docType": "class" + }, + { + "title": "ELEMENT_PROBE_BINDINGS", + "originalModule": "angular2/src/core/debug/debug_element_view_listener", + "docType": "const" + }, + { + "title": "ElementRef", + "originalModule": "angular2/src/core/compiler/element_ref", + "docType": "class" + }, + { + "title": "Event", + "varType": "EventFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "EventEmitter", + "originalModule": "angular2/src/core/facade/async", + "docType": "class" + }, + { + "title": "EventFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "EventMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "ExpressionChangedAfterItHasBeenCheckedException", + "originalModule": "angular2/src/core/change_detection/exceptions", + "docType": "class" + }, + { + "title": "FORM_BINDINGS", + "originalModule": "angular2/src/core/forms", + "docType": "const" + }, + { + "title": "FORM_DIRECTIVES", + "originalModule": "angular2/src/core/forms/directives", + "docType": "const" + }, + { + "title": "Form", + "originalModule": "angular2/src/core/forms/directives/form_interface", + "docType": "interface" + }, + { + "title": "FormBuilder", + "originalModule": "angular2/src/core/forms/form_builder", + "docType": "class" + }, + { + "title": "ForwardRefFn", + "originalModule": "angular2/src/core/di/forward_ref", + "docType": "interface" + }, + { + "title": "Host", + "varType": "HostFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "HostBinding", + "varType": "HostBindingFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "HostBindingFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "HostBindingMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "HostFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "HostListener", + "varType": "HostListenerFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "HostListenerFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "HostListenerMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "HostMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "HostViewRef", + "originalModule": "angular2/src/core/compiler/view_ref", + "docType": "interface" + }, + { + "title": "Inject", + "varType": "InjectFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "InjectFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "InjectMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "Injectable", + "varType": "InjectableFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "InjectableFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "InjectableMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "Injector", + "originalModule": "angular2/src/core/di/injector", + "docType": "class" + }, + { + "title": "InstantiationError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "InvalidBindingError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "IterableDiffer", + "originalModule": "angular2/src/core/change_detection/differs/iterable_differs", + "docType": "interface" + }, + { + "title": "IterableDifferFactory", + "originalModule": "angular2/src/core/change_detection/differs/iterable_differs", + "docType": "interface" + }, + { + "title": "IterableDiffers", + "originalModule": "angular2/src/core/change_detection/differs/iterable_differs", + "docType": "class" + }, + { + "title": "JsonPipe", + "originalModule": "angular2/src/core/pipes/json_pipe", + "docType": "class" + }, + { + "title": "Key", + "originalModule": "angular2/src/core/di/key", + "docType": "class" + }, + { + "title": "KeyRegistry", + "originalModule": "angular2/src/core/di/key", + "docType": "class" + }, + { + "title": "KeyValueDiffer", + "originalModule": "angular2/src/core/change_detection/differs/keyvalue_differs", + "docType": "interface" + }, + { + "title": "KeyValueDifferFactory", + "originalModule": "angular2/src/core/change_detection/differs/keyvalue_differs", + "docType": "interface" + }, + { + "title": "KeyValueDiffers", + "originalModule": "angular2/src/core/change_detection/differs/keyvalue_differs", + "docType": "class" + }, + { + "title": "LifeCycle", + "originalModule": "angular2/src/core/life_cycle/life_cycle", + "docType": "class" + }, + { + "title": "LimitToPipe", + "originalModule": "angular2/src/core/pipes/limit_to_pipe", + "docType": "class" + }, + { + "title": "Locals", + "originalModule": "angular2/src/core/change_detection/parser/locals", + "docType": "class" + }, + { + "title": "LowerCasePipe", + "originalModule": "angular2/src/core/pipes/lowercase_pipe", + "docType": "class" + }, + { + "title": "MAX_IN_MEMORY_ELEMENTS_PER_TEMPLATE", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/render/dom/dom_tokens", + "docType": "const" + }, + { + "title": "NG_VALIDATORS", + "varType": "OpaqueToken", + "originalModule": "angular2/src/core/forms/validators", + "docType": "const" + }, + { + "title": "NgClass", + "originalModule": "angular2/src/core/directives/ng_class", + "docType": "directive" + }, + { + "title": "NgControl", + "originalModule": "angular2/src/core/forms/directives/ng_control", + "docType": "class" + }, + { + "title": "NgControlGroup", + "originalModule": "angular2/src/core/forms/directives/ng_control_group", + "docType": "directive" + }, + { + "title": "NgControlName", + "originalModule": "angular2/src/core/forms/directives/ng_control_name", + "docType": "directive" + }, + { + "title": "NgFor", + "originalModule": "angular2/src/core/directives/ng_for", + "docType": "directive" + }, + { + "title": "NgForm", + "originalModule": "angular2/src/core/forms/directives/ng_form", + "docType": "directive" + }, + { + "title": "NgFormControl", + "originalModule": "angular2/src/core/forms/directives/ng_form_control", + "docType": "directive" + }, + { + "title": "NgFormModel", + "originalModule": "angular2/src/core/forms/directives/ng_form_model", + "docType": "directive" + }, + { + "title": "NgIf", + "originalModule": "angular2/src/core/directives/ng_if", + "docType": "directive" + }, + { + "title": "NgModel", + "originalModule": "angular2/src/core/forms/directives/ng_model", + "docType": "directive" + }, + { + "title": "NgNonBindable", + "originalModule": "angular2/src/core/directives/ng_non_bindable", + "docType": "class" + }, + { + "title": "NgSelectOption", + "originalModule": "angular2/src/core/forms/directives/select_control_value_accessor", + "docType": "directive" + }, + { + "title": "NgStyle", + "originalModule": "angular2/src/core/directives/ng_style", + "docType": "directive" + }, + { + "title": "NgSwitch", + "originalModule": "angular2/src/core/directives/ng_switch", + "docType": "directive" + }, + { + "title": "NgSwitchDefault", + "originalModule": "angular2/src/core/directives/ng_switch", + "docType": "directive" + }, + { + "title": "NgSwitchWhen", + "originalModule": "angular2/src/core/directives/ng_switch", + "docType": "directive" + }, + { + "title": "NgZone", + "originalModule": "angular2/src/core/zone/ng_zone", + "docType": "class" + }, + { + "title": "NoAnnotationError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "NoBindingError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "NumberPipe", + "originalModule": "angular2/src/core/pipes/number_pipe", + "docType": "class" + }, + { + "title": "Observable", + "originalModule": "angular2/src/core/facade/async", + "docType": "class" + }, + { + "title": "OnChanges", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OnDestroy", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OnInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OpaqueToken", + "originalModule": "angular2/src/core/di/opaque_token", + "docType": "class" + }, + { + "title": "Optional", + "varType": "OptionalFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "OptionalFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "OptionalMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "OutOfBoundsError", + "originalModule": "angular2/src/core/di/exceptions", + "docType": "class" + }, + { + "title": "PercentPipe", + "originalModule": "angular2/src/core/pipes/number_pipe", + "docType": "class" + }, + { + "title": "Pipe", + "varType": "PipeFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "PipeFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "PipeMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "PipeOnDestroy", + "originalModule": "angular2/src/core/change_detection/pipe_transform", + "docType": "interface" + }, + { + "title": "PipeTransform", + "originalModule": "angular2/src/core/change_detection/pipe_transform", + "docType": "interface" + }, + { + "title": "Predicate", + "originalModule": "angular2/src/core/facade/collection", + "docType": "interface" + }, + { + "title": "Property", + "varType": "PropertyFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "PropertyFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "PropertyMetadata", + "originalModule": "angular2/src/core/metadata/directives", + "docType": "class" + }, + { + "title": "ProtoInjector", + "originalModule": "angular2/src/core/di/injector", + "docType": "class" + }, + { + "title": "ProtoViewRef", + "originalModule": "angular2/src/core/compiler/view_ref", + "docType": "interface" + }, + { + "title": "Query", + "varType": "QueryFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "QueryFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "QueryList", + "originalModule": "angular2/src/core/compiler/query_list", + "docType": "class" + }, + { + "title": "QueryMetadata", + "originalModule": "angular2/src/core/metadata/di", + "docType": "class" + }, + { + "title": "RecordViewTuple", + "originalModule": "angular2/src/core/directives/ng_for", + "docType": "class" + }, + { + "title": "RenderDirectiveMetadata", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "RenderElementRef", + "originalModule": "angular2/src/core/render/api", + "docType": "interface" + }, + { + "title": "RenderEventDispatcher", + "originalModule": "angular2/src/core/render/api", + "docType": "interface" + }, + { + "title": "RenderFragmentRef", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "RenderProtoViewRef", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "RenderViewRef", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "RenderViewWithFragments", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "Renderer", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "ResolvedBinding", + "originalModule": "angular2/src/core/di/binding", + "docType": "class" + }, + { + "title": "ResolvedFactory", + "originalModule": "angular2/src/core/di/binding", + "docType": "class" + }, + { + "title": "Scope", + "originalModule": "angular2/src/core/debug/debug_element", + "docType": "class" + }, + { + "title": "SelectControlValueAccessor", + "originalModule": "angular2/src/core/forms/directives/select_control_value_accessor", + "docType": "directive" + }, + { + "title": "Self", + "varType": "SelfFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "SelfFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "SelfMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "SkipSelf", + "varType": "SkipSelfFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "var" + }, + { + "title": "SkipSelfFactory", + "originalModule": "angular2/src/core/di/decorators", + "docType": "interface" + }, + { + "title": "SkipSelfMetadata", + "originalModule": "angular2/src/core/di/metadata", + "docType": "class" + }, + { + "title": "SwitchView", + "originalModule": "angular2/src/core/directives/ng_switch", + "docType": "class" + }, + { + "title": "TemplateRef", + "originalModule": "angular2/src/core/compiler/template_ref", + "docType": "class" + }, + { + "title": "Type", + "originalModule": "angular2/src/core/facade/lang", + "docType": "interface" + }, + { + "title": "TypeDecorator", + "originalModule": "angular2/src/core/util/decorators", + "docType": "interface" + }, + { + "title": "TypeLiteral", + "originalModule": "angular2/src/core/di/type_literal", + "docType": "class" + }, + { + "title": "UNDEFINED", + "varType": "Object", + "originalModule": "angular2/src/core/di/injector", + "docType": "const" + }, + { + "title": "UpperCasePipe", + "originalModule": "angular2/src/core/pipes/uppercase_pipe", + "docType": "class" + }, + { + "title": "UrlResolver", + "originalModule": "angular2/src/core/services/url_resolver", + "docType": "class" + }, + { + "title": "Validators", + "originalModule": "angular2/src/core/forms/validators", + "docType": "class" + }, + { + "title": "View", + "varType": "ViewFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "ViewContainerRef", + "originalModule": "angular2/src/core/compiler/view_container_ref", + "docType": "interface" + }, + { + "title": "ViewDecorator", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "ViewDefinition", + "originalModule": "angular2/src/core/render/api", + "docType": "class" + }, + { + "title": "ViewEncapsulation", + "originalModule": "angular2/src/core/render/api", + "docType": "enum" + }, + { + "title": "ViewFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "interface" + }, + { + "title": "ViewMetadata", + "originalModule": "angular2/src/core/metadata/view", + "docType": "class" + }, + { + "title": "ViewQuery", + "varType": "QueryFactory", + "originalModule": "angular2/src/core/metadata", + "docType": "var" + }, + { + "title": "ViewQueryMetadata", + "originalModule": "angular2/src/core/metadata/di", + "docType": "class" + }, + { + "title": "ViewRef", + "originalModule": "angular2/src/core/compiler/view_ref", + "docType": "interface" + }, + { + "title": "Visibility", + "originalModule": "angular2/src/core/di/injector", + "docType": "enum" + }, + { + "title": "WrappedException", + "originalModule": "angular2/src/core/facade/exceptions", + "docType": "class" + }, + { + "title": "WrappedValue", + "originalModule": "angular2/src/core/change_detection/change_detection_util", + "docType": "class" + }, + { + "title": "asNativeElements", + "originalModule": "angular2/src/core/debug/debug_element", + "docType": "function" + }, + { + "title": "bind", + "originalModule": "angular2/src/core/di/binding", + "docType": "function" + }, + { + "title": "bootstrap", + "originalModule": "angular2/src/core/application_common", + "docType": "function" + }, + { + "title": "forwardRef", + "originalModule": "angular2/src/core/di/forward_ref", + "docType": "function" + }, + { + "title": "inspectElement", + "originalModule": "angular2/src/core/debug/debug_element", + "docType": "function" + }, + { + "title": "inspectNativeElement", + "originalModule": "angular2/src/core/debug/debug_element_view_listener", + "docType": "function" + }, + { + "title": "resolveForwardRef", + "originalModule": "angular2/src/core/di/forward_ref", + "docType": "function" + } + ]; + $scope.apiList.http = [ + { + "title": "BaseRequestOptions", + "originalModule": "angular2/src/http/base_request_options", + "docType": "class" + }, + { + "title": "BaseResponseOptions", + "originalModule": "angular2/src/http/base_response_options", + "docType": "class" + }, + { + "title": "BrowserXhr", + "originalModule": "angular2/src/http/backends/browser_xhr", + "docType": "class" + }, + { + "title": "Connection", + "originalModule": "angular2/src/http/interfaces", + "docType": "class" + }, + { + "title": "ConnectionBackend", + "originalModule": "angular2/src/http/interfaces", + "docType": "class" + }, + { + "title": "HTTP_BINDINGS", + "originalModule": "angular2/http", + "docType": "const" + }, + { + "title": "Headers", + "originalModule": "angular2/src/http/headers", + "docType": "class" + }, + { + "title": "Http", + "originalModule": "angular2/src/http/http", + "docType": "class" + }, + { + "title": "JSONPBackend", + "originalModule": "angular2/src/http/backends/jsonp_backend", + "docType": "interface" + }, + { + "title": "JSONPConnection", + "originalModule": "angular2/src/http/backends/jsonp_backend", + "docType": "interface" + }, + { + "title": "JSONP_BINDINGS", + "originalModule": "angular2/http", + "docType": "const" + }, + { + "title": "Jsonp", + "originalModule": "angular2/src/http/http", + "docType": "class" + }, + { + "title": "MockBackend", + "originalModule": "angular2/src/http/backends/mock_backend", + "docType": "class" + }, + { + "title": "MockConnection", + "originalModule": "angular2/src/http/backends/mock_backend", + "docType": "class" + }, + { + "title": "ReadyStates", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "Request", + "originalModule": "angular2/src/http/static_request", + "docType": "class" + }, + { + "title": "RequestCacheOpts", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "RequestCredentialsOpts", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "RequestMethods", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "RequestModesOpts", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "RequestOptions", + "originalModule": "angular2/src/http/base_request_options", + "docType": "class" + }, + { + "title": "RequestOptionsArgs", + "originalModule": "angular2/src/http/interfaces", + "docType": "interface" + }, + { + "title": "Response", + "originalModule": "angular2/src/http/static_response", + "docType": "class" + }, + { + "title": "ResponseOptions", + "originalModule": "angular2/src/http/base_response_options", + "docType": "class" + }, + { + "title": "ResponseOptionsArgs", + "originalModule": "angular2/src/http/interfaces", + "docType": "interface" + }, + { + "title": "ResponseTypes", + "originalModule": "angular2/src/http/enums", + "docType": "enum" + }, + { + "title": "URLSearchParams", + "originalModule": "angular2/src/http/url_search_params", + "docType": "class" + }, + { + "title": "XHRBackend", + "originalModule": "angular2/src/http/backends/xhr_backend", + "docType": "class" + }, + { + "title": "XHRConnection", + "originalModule": "angular2/src/http/backends/xhr_backend", + "docType": "class" + } + ]; + $scope.apiList.lifecycle_hooks = [ + { + "title": "AfterContentChecked", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterContentInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterViewChecked", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "AfterViewInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "DoCheck", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OnChanges", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OnDestroy", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + }, + { + "title": "OnInit", + "originalModule": "angular2/src/core/compiler/interfaces", + "docType": "class" + } + ]; + $scope.apiList.router = [ + { + "title": "APP_BASE_HREF", + "varType": "OpaqueToken", + "originalModule": "angular2/src/router/location", + "docType": "const" + }, + { + "title": "AsyncRoute", + "originalModule": "angular2/src/router/route_config_impl", + "docType": "class" + }, + { + "title": "AuxRoute", + "originalModule": "angular2/src/router/route_config_impl", + "docType": "class" + }, + { + "title": "CanActivate", + "originalModule": "angular2/src/router/lifecycle_annotations", + "docType": "var" + }, + { + "title": "CanDeactivate", + "originalModule": "angular2/src/router/interfaces", + "docType": "interface" + }, + { + "title": "CanReuse", + "originalModule": "angular2/src/router/interfaces", + "docType": "interface" + }, + { + "title": "ComponentDefinition", + "originalModule": "angular2/src/router/route_definition", + "docType": "interface" + }, + { + "title": "ComponentInstruction", + "originalModule": "angular2/src/router/instruction", + "docType": "interface" + }, + { + "title": "HashLocationStrategy", + "originalModule": "angular2/src/router/hash_location_strategy", + "docType": "class" + }, + { + "title": "Instruction", + "originalModule": "angular2/src/router/instruction", + "docType": "class" + }, + { + "title": "Location", + "originalModule": "angular2/src/router/location", + "docType": "class" + }, + { + "title": "LocationStrategy", + "originalModule": "angular2/src/router/location_strategy", + "docType": "class" + }, + { + "title": "OnActivate", + "originalModule": "angular2/src/router/interfaces", + "docType": "interface" + }, + { + "title": "OnDeactivate", + "originalModule": "angular2/src/router/interfaces", + "docType": "interface" + }, + { + "title": "OnReuse", + "originalModule": "angular2/src/router/interfaces", + "docType": "interface" + }, + { + "title": "OpaqueToken", + "originalModule": "angular2/src/core/di/opaque_token", + "docType": "class" + }, + { + "title": "PathLocationStrategy", + "originalModule": "angular2/src/router/path_location_strategy", + "docType": "class" + }, + { + "title": "Pipeline", + "originalModule": "angular2/src/router/pipeline", + "docType": "class" + }, + { + "title": "ROUTER_BINDINGS", + "originalModule": "angular2/router", + "docType": "const" + }, + { + "title": "ROUTER_DIRECTIVES", + "originalModule": "angular2/router", + "docType": "const" + }, + { + "title": "ROUTE_DATA", + "varType": "OpaqueToken", + "originalModule": "angular2/src/router/route_data", + "docType": "const" + }, + { + "title": "Redirect", + "originalModule": "angular2/src/router/route_config_impl", + "docType": "class" + }, + { + "title": "RootRouter", + "originalModule": "angular2/src/router/router", + "docType": "class" + }, + { + "title": "Route", + "originalModule": "angular2/src/router/route_config_impl", + "docType": "class" + }, + { + "title": "RouteConfig", + "originalModule": "angular2/src/router/route_config_decorator", + "docType": "var" + }, + { + "title": "RouteDefinition", + "originalModule": "angular2/src/router/route_definition", + "docType": "interface" + }, + { + "title": "RouteParams", + "originalModule": "angular2/src/router/instruction", + "docType": "class" + }, + { + "title": "RouteRegistry", + "originalModule": "angular2/src/router/route_registry", + "docType": "class" + }, + { + "title": "Router", + "originalModule": "angular2/src/router/router", + "docType": "class" + }, + { + "title": "RouterLink", + "originalModule": "angular2/src/router/router_link", + "docType": "class" + }, + { + "title": "RouterOutlet", + "originalModule": "angular2/src/router/router_outlet", + "docType": "interface" + }, + { + "title": "Url", + "originalModule": "angular2/src/router/url_parser", + "docType": "class" + } + ]; + $scope.apiList.test = [ + { + "title": "AsyncTestCompleter", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "class" + }, + { + "title": "FunctionWithParamTokens", + "originalModule": "angular2/src/test_lib/test_injector", + "docType": "class" + }, + { + "title": "GuinessCompatibleSpy", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "interface" + }, + { + "title": "NgMatchers", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "interface" + }, + { + "title": "RootTestComponent", + "originalModule": "angular2/src/test_lib/test_component_builder", + "docType": "interface" + }, + { + "title": "SpyObject", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "class" + }, + { + "title": "SyncTestFn", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "type-alias" + }, + { + "title": "TestComponentBuilder", + "originalModule": "angular2/src/test_lib/test_component_builder", + "docType": "class" + }, + { + "title": "afterEach", + "varType": "Function", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "var" + }, + { + "title": "beforeEach", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "beforeEachBindings", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "clearPendingTimers", + "originalModule": "angular2/src/test_lib/fake_async", + "docType": "function" + }, + { + "title": "createTestInjector", + "originalModule": "angular2/src/test_lib/test_injector", + "docType": "function" + }, + { + "title": "ddescribe", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "describe", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "expect", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "var" + }, + { + "title": "fakeAsync", + "originalModule": "angular2/src/test_lib/fake_async", + "docType": "function" + }, + { + "title": "flushMicrotasks", + "originalModule": "angular2/src/test_lib/fake_async", + "docType": "function" + }, + { + "title": "iit", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "inject", + "originalModule": "angular2/src/test_lib/test_injector", + "docType": "function" + }, + { + "title": "isInInnerZone", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "it", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "proxy", + "varType": "ClassDecorator", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "var" + }, + { + "title": "tick", + "originalModule": "angular2/src/test_lib/fake_async", + "docType": "function" + }, + { + "title": "xdescribe", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + }, + { + "title": "xit", + "originalModule": "angular2/src/test_lib/test_lib", + "docType": "function" + } + ]; /* - * Prettify Code - * - * Finish Rendereding code directives then prettify code - */ + * Prettify Code + * + * Finish Rendereding code directives then prettify code + */ // GRAB ALL TAGS NOT USING DIRECTIVES var preTags = angular.element(document.body).find('pre'); // LOOP THROUGH AND ADD PRETTIFY CLASS - _.each(preTags, function(element) { + _.each(preTags, function (element) { var preTag = angular.element(element); // IF NOT FORMATTED, ADD PRETTY PRINT - if(!preTag.hasClass('prettyprint')) { + if (!preTag.hasClass('prettyprint')) { preTag.addClass('prettyprint linenums'); } }); // TRIGGER PRETTYPRINT AFTER DIGEST LOOP COMPLETE $timeout(prettyPrint, 1); -}]); \ No newline at end of file +} ]); \ No newline at end of file