Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 2c7ec94

Browse files
committed
Update capitalize filter to Typescript.
1 parent 6fb4786 commit 2c7ec94

File tree

1 file changed

+6
-6
lines changed
  • samples/VueCliSample/ClientApp/src/views

1 file changed

+6
-6
lines changed

samples/VueCliSample/ClientApp/src/views/Home.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import axios from 'axios';
2828
2929
@Component({
3030
filters: {
31-
capitalize: function(value: string) {
32-
if (!value) return ''
33-
value = value.toString()
34-
return value.charAt(0).toUpperCase() + value.slice(1)
35-
}
36-
}
31+
capitalize: (value: string) => {
32+
if (!value) { return ''; }
33+
value = value.toString();
34+
return value.charAt(0).toUpperCase() + value.slice(1);
35+
},
36+
},
3737
})
3838
export default class Home extends Vue {
3939
private forecasts: IWeatherForecast[] = [{ summary: 'No data.' } as IWeatherForecast];

0 commit comments

Comments
 (0)