Why does Prettier not format code in VS Code?

How I’ve sorted it after having super huge frustrations with Prettier stopping working in VSCode. Select VS Code -> View -> Command Palette, and type: Format Document With Then Configure Default Formatter… and then choose Prettier – Code formatter. This sorted the problem for me magically. Depending on your case this might help you…

How to listen for ‘props’ changes

You can watch props to execute some code upon props changes: new Vue({ el: ‘#app’, data: { text: ‘Hello’ }, components: { ‘child’ : { template: `<p>{{ myprop }}</p>`, props: [‘myprop’], watch: { myprop: function(newVal, oldVal) { // watch it console.log(‘Prop changed: ‘, newVal, ‘ | was: ‘, oldVal) } } } } }); <script … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)