How can I bind the html <title> content in vuejs?

后端 未结 5 485
后悔当初
后悔当初 2020-11-29 00:19

I\'m trying a demo on vuejs. Now I want the html title to bind a vm field.

The below is what I tried:

index.html



        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 00:40

    You can do it with 1 line in the App.vue file, like this:

    
    

    Or change the </code> tag content in <code>public/index.html</code></p> <pre><code><!DOCTYPE html> <html> <head> <title>Look Ma! ...

提交回复
热议问题