I want to display my string on multiple lines. I already tried something like replaceAll(",", "\n")
Here's my Code:
<template>
    <v-form>
        <v-container>
          <v-card
              class="mt-15 pa-4  mx-auto"
              max-width="1000"
              multi-line>
            {{consoleOutput.toString().replaceAll(",", "\n")}}
          </v-card>
        </v-container>
    </v-form>
</template>
<script>
    export default {
        data: () => ({
            consoleOutput: ["This", "should", "be", "on a ", "new Line "],
        })
    }
</script>
I get this output This should be on a new Line. My target is to print each string on a different line and add a index in front of it (equal to console) like:
1. This
2. should
3. be 
4. on a 
5. new Line
 
     
     
     
    
after each line of use – bel3atar May 18 '21 at 14:12
tag for each string ...
– mahatmanich May 18 '21 at 14:14