@ngdoc overview @name Developer Guide: Templates: Working With CSS in Angular @description Angular sets these CSS classes. It is up to your application to provide useful styling. # CSS classes used by angular * `ng-invalid`, `ng-valid` - **Usage:** angular applies this class to an input widget element if that element's input does notpass validation. (see {@link api/angular.widget.input input} widget). * `ng-pristine`, `ng-dirty` - **Usage:** angular {@link api/angular.widget.input input} widget applies `ng-pristine` class to a new input widget element which did not have user interaction. Once the user interacts with the input widget the class is changed to `ng-dirty`. # Marking CSS classes * `ng-widget`, `ng-directive` - **Usage:** angular sets these class on elements where {@link api/angular.widget widget} or {@link api/angular.directive directive} has bound to. * Old browser support - Pre v9, IE browsers could not select `ng:include` elements in CSS, because of the `:` character. For this reason angular also sets `ng-include` class on any element which has `:` character in the name by replacing `:` with `-`. ## Related Topics * {@link dev_guide.templates Angular Templates} * {@link dev_guide.forms Angular Forms} '>model-serializer-caching Web APIs for Django.
aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pygments_api/views.py
blob: 884cff3af15f1b9c9279c16d036dd9c7b5645a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108