File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,18 @@ import {MdSnackBarContainer} from './snack-bar-container';
9
9
* Reference to a snack bar dispatched from the snack bar service.
10
10
*/
11
11
export class MdSnackBarRef < T > {
12
- /** The instance of the component making up the content of the snack bar. */
13
- readonly instance : T ;
12
+ private _instance : T ;
14
13
15
14
/** The instance of the component making up the content of the snack bar. */
16
- readonly containerInstance : MdSnackBarContainer ;
15
+ get instance ( ) : T {
16
+ return this . _instance ;
17
+ }
18
+
19
+ /**
20
+ * The instance of the component making up the content of the snack bar.
21
+ * @docs -private
22
+ */
23
+ containerInstance : MdSnackBarContainer ;
17
24
18
25
/** Subject for notifying the user that the snack bar has closed. */
19
26
private _afterClosed : Subject < any > = new Subject ( ) ;
@@ -28,7 +35,7 @@ export class MdSnackBarRef<T> {
28
35
containerInstance : MdSnackBarContainer ,
29
36
private _overlayRef : OverlayRef ) {
30
37
// Sets the readonly instance of the snack bar content component.
31
- this . instance = instance ;
38
+ this . _instance = instance ;
32
39
this . containerInstance = containerInstance ;
33
40
// Dismiss snackbar on action.
34
41
this . onAction ( ) . subscribe ( ( ) => this . dismiss ( ) ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class ComponentGroup {
14
14
this . docType = 'componentGroup' ;
15
15
this . directives = [ ] ;
16
16
this . services = [ ] ;
17
+ this . additionalClasses = [ ] ;
17
18
this . ngModule = null ;
18
19
}
19
20
}
@@ -50,6 +51,8 @@ module.exports = function componentGrouper() {
50
51
group . services . push ( doc ) ;
51
52
} else if ( doc . isNgModule ) {
52
53
group . ngModule = doc ;
54
+ } else if ( doc . docType == 'class' ) {
55
+ group . additionalClasses . push ( doc ) ;
53
56
}
54
57
} ) ;
55
58
Original file line number Diff line number Diff line change @@ -52,3 +52,10 @@ <h2>Directives</h2>
52
52
{$ class(directive) $}
53
53
{% endfor %}
54
54
{%- endif -%}
55
+
56
+ {%- if doc.additionalClasses.length -%}
57
+ < h2 > Additional classes</ h2 >
58
+ {% for other in doc.additionalClasses %}
59
+ {$ class(other) $}
60
+ {% endfor %}
61
+ {%- endif -%}
You can’t perform that action at this time.
0 commit comments