Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit b88b25a

Browse files
alexwolfenaomiblack
authored andcommitted
update symbold for type alias
1 parent 61b13c1 commit b88b25a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

public/resources/css/module/_symbol.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $api-symbols: (
5151
),
5252
type-alias: (
5353
content: 'T',
54-
background: $blue-grey-50
54+
background: $light-green-600
5555
)
5656
);
5757

public/resources/js/directives/api-list.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*eslint no-unused-vars: "angularIO" */
2+
3+
4+
/*
5+
* API List & Filter Directive
6+
*
7+
* A page displaying all of the angular API methods available
8+
* including a filter that can hide/show methods bases on filter
9+
* settings.
10+
*/
11+
112
angularIO.directive('apiList', function () {
213
var API_FILTER_KEY = 'apiFilter';
314
var API_TYPE_KEY = 'apiType';
@@ -31,10 +42,9 @@ angularIO.directive('apiList', function () {
3142
'</article>',
3243
controllerAs: '$ctrl',
3344
controller: function($scope, $attrs, $http, $location) {
45+
// SET DEFAULTS
3446
var $ctrl = this;
35-
3647
$ctrl.showMenu = false;
37-
3848
var isForDart = $attrs.lang === 'dart';
3949

4050
$ctrl.apiTypes = [
@@ -63,11 +73,13 @@ angularIO.directive('apiList', function () {
6373
$ctrl.showMenu = !$ctrl.showMenu;
6474
};
6575

76+
// CLEAR FILTER
6677
$ctrl.clearType = function () {
6778
$ctrl.apiType = null;
6879
$ctrl.showMenu = !$ctrl.showMenu;
6980
};
7081

82+
// TOGGLE FILTER MENU
7183
$ctrl.toggleMenu = function () {
7284
$ctrl.showMenu = !$ctrl.showMenu;
7385
};

0 commit comments

Comments
 (0)