File tree 3 files changed +21
-1
lines changed
static/usage/v7/datetime/styling
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
``` ts
2
- import { Component , OnInit , ViewChild } from ' @angular/core' ;
2
+ import { Component , OnInit , ViewEncapsulation } from ' @angular/core' ;
3
3
4
+ // ViewEncapsulation is turned off for this demo due to
5
+ // a lack of support for styling multiple css shadow parts
6
+ // See https://github.com/angular/angular/issues/22515
4
7
@Component ({
5
8
selector: ' app-example' ,
6
9
templateUrl: ' example.component.html' ,
7
10
styleUrls: [' example.component.css' ],
11
+ encapsulation: ViewEncapsulation .None
8
12
})
9
13
export class ExampleComponent implements OnInit {
10
14
public datetime;
Original file line number Diff line number Diff line change
1
+ ``` ts
2
+ import { Component , ViewEncapsulation } from ' @angular/core' ;
3
+
4
+ // ViewEncapsulation is turned off for this demo due to
5
+ // a lack of support for styling multiple css shadow parts
6
+ // See https://github.com/angular/angular/issues/22515
7
+ @Component ({
8
+ selector: ' app-example' ,
9
+ templateUrl: ' example.component.html' ,
10
+ styleUrls: [' example.component.css' ],
11
+ encapsulation: ViewEncapsulation .None
12
+ })
13
+ export class ExampleComponent { }
14
+ ```
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import vue from './vue.md';
9
9
10
10
import angular_example_component_html from './angular/example_component_html.md';
11
11
import angular_example_component_css from './angular/example_component_css.md';
12
+ import angular_example_component_ts from './angular/example_component_ts.md';
12
13
13
14
<Playground
14
15
version="7"
@@ -25,6 +26,7 @@ import angular_example_component_css from './angular/example_component_css.md';
25
26
files: {
26
27
'src/app/example.component.html': angular_example_component_html,
27
28
'src/app/example.component.css': angular_example_component_css,
29
+ 'src/app/example.component.ts': angular_example_component_ts,
28
30
},
29
31
},
30
32
}}
You can’t perform that action at this time.
0 commit comments