152
rated 0 times
[
154]
[
2]
/ answers: 1 / hits: 47844
/ 7 Years ago, mon, october 9, 2017, 12:00:00
I am trying to display a message once the user logs in.
In the case where number of characters exceed 8, how can I display only the first 8 characters of a name followed by ".." ? (Eg: Monalisa..)
new Vue({
el: '#app',
data: {
username: 'AVERYLONGGGNAMMEEE'
}
});
Here is my jsfiddle demo
More From » vue.js