File: module-id.expect.txt

package info (click to toggle)
highlight.js 10.7.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,332 kB
  • sloc: javascript: 41,059; makefile: 157; python: 29; sh: 20
file content (14 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<span class="hljs-meta">@Component</span>({
  <span class="hljs-attr">selector</span>: <span class="hljs-string">&#x27;my-example&#x27;</span>,
  <span class="hljs-attr">directives</span>: [SomeDirective],
  <span class="hljs-attr">templateUrl</span>: <span class="hljs-string">&#x27;./my-example.component.html&#x27;</span>,
  <span class="hljs-attr">moduleId</span>: <span class="hljs-built_in">module</span>.id,
  <span class="hljs-attr">styles</span>: [<span class="hljs-string">`
    .my-example {
      padding: 5px;
    }
  `</span>]
})
<span class="hljs-keyword">export</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyExampleComponent</span> </span>{
  <span class="hljs-attr">someProp</span>: <span class="hljs-built_in">string</span> = <span class="hljs-string">&quot;blah&quot;</span>;
}