This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+
112angularIO . 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 } ;
You can’t perform that action at this time.
0 commit comments