Skip to content

Commit aea573b

Browse files
committed
docs(demos): fix issues after dependency upgrades
1 parent c23f54c commit aea573b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

projects/demos/app/demo-app.component.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ async function getSources(folder: string): Promise<Source[]> {
3636
return {
3737
filename,
3838
contents: {
39-
raw: contents.raw
39+
raw: contents.raw.default
4040
.replace(
4141
",\n RouterModule.forChild([{ path: '', component: DemoComponent }])",
4242
''
4343
)
4444
.replace("\nimport { RouterModule } from '@angular/router';", ''),
45-
highlighted: contents.highlighted // TODO - move this into a regexp replace for both
45+
highlighted: contents.highlighted.default // TODO - move this into a regexp replace for both
4646
.replace(
4747
',\n RouterModule.forChild([{ path: <span class="hljs-string">\'\'</span>, component: DemoComponent }])',
4848
''
@@ -189,7 +189,7 @@ platformBrowserDynamic().bootstrapModule(BootstrapModule).then(ref => {
189189
};
190190

191191
demoUtilsSources.forEach(source => {
192-
files[`demo-utils/${source.filename}`] = source.contents.raw;
192+
files[`demo-utils/${source.filename}`] = source.contents.raw.default;
193193
});
194194

195195
demo.sources.forEach(source => {

projects/demos/app/demo-modules/async-events/component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ export class DemoComponent implements OnInit {
6969
const params = new HttpParams()
7070
.set(
7171
'primary_release_date.gte',
72-
format(getStart(this.viewDate), 'YYYY-MM-DD')
72+
format(getStart(this.viewDate), 'yyyy-MM-dd')
7373
)
7474
.set(
7575
'primary_release_date.lte',
76-
format(getEnd(this.viewDate), 'YYYY-MM-DD')
76+
format(getEnd(this.viewDate), 'yyyy-MM-dd')
7777
)
7878
.set('api_key', '0ec33936a68018857d727958dca1424f');
7979

0 commit comments

Comments
 (0)