Code.exe > hello-world.page.js - paircast-sails - Visual Studio Code
Code.exe > ● hello-world.page.js - paircast-sails - Visual Studio Code
Wathc me doi it08:11
Commit 9d980eece71572129e74d5fdc847831b4662dbe8
--- assets/js/pages/hello-world.page.js
+++ assets/js/pages/hello-world.page.js
@@ -9,11 +9,14 @@ parasails.registerPage('hello-world', {
// ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
- beforeMount: function() {
+ beforeMount: function () {
// Attach any initial data from the server.
_.extend(this, SAILS_LOCALS);
},
- mounted: async function() {
+ mounted: async function () {
+
+ console.log(this.beta)
+
//…
},
It looks like we're lifting again.
In the middle of lifting their ego. So that's actually that line right there, So see Hello? Will Page 18 That's actually logging this stop Vita, and so that actually came from the back, and it's being rendered in the front within view.
chrome.exe > NEW_APP_NAME - Google Chrome
Code.exe > view-hello-world.js - paircast-sails - Visual Studio Code
And the cool thing is here is weakened and start playing with that in view.
Code.exe > hello-world.page.js - paircast-sails - Visual Studio Code
So if we take view Hello, world and we say we just say something like
Um
Ah H radicals. This Viane click equals beta giggles false.
Code.exe > ● hello-world.ejs - paircast-sails - Visual Studio Code
On. And of course we want, Teo.
Commit c09f04c5bf15d07b1df79335502e267ad1154749
--- views/pages/hello-world.ejs
+++ views/pages/hello-world.ejs
@@ -1,8 +1,6 @@
<div id="hello-world" v-cloak>
<h1>Hello World!</h1>
- <p>(See also <em>assets/styles/pages/hello-world.less</em>, <em>assets/js/pages/hello-world.page.js</em>, and
- <em>api/controllers/view-hello-world.js</em>.)</p>
-
+ <a href="#" v-on:click="beta == false">Set beta to false</a>
</div>
<%- /* Expose server-rendered data as window.SAILS_LOCALS :: */ exposeLocalsToBrowser() %>
Annihilate that in a false, illiterate sales. Ah, well, actually, you know what? We can't look. It sells local, so we'll what we'll do is we'll add a watcher, so I think it's a thing. It's a watch.
Code.exe > hello-world.ejs - paircast-sails - Visual Studio Code
In view, and we debate Ah.
Code.exe > ● hello-world.page.js - paircast-sails - Visual Studio Code
Function. Um, about Consul Log, updated.
Commit fc06d7017b4068ef982a40d78986b3f9bdfeabc5
--- assets/js/pages/hello-world.page.js
+++ assets/js/pages/hello-world.page.js
@@ -5,6 +5,11 @@ parasails.registerPage('hello-world', {
data: {
//…
},
+ watch: {
+ beta: function () {
+ console.log('updated')
+ }
+ },
// ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
Code.exe > hello-world.page.js - paircast-sails - Visual Studio Code
Let's see what happens.
Looks like we're lifting again. Oh, it's a Watcher and view watch called watcher.
chrome.exe > vue watch - Google Search - Google Chrome
If you did.
Just look for a watch.
Watch. First name function, Peter.
chrome.exe > Computed Properties and Watchers — Vue.js - Google Chrome
Functioned well.
Commit ad86f44b609a37024606c12ff755423edcf1d601
--- assets/js/pages/hello-world.page.js
+++ assets/js/pages/hello-world.page.js
@@ -6,8 +6,8 @@ parasails.registerPage('hello-world', {
//…
},
watch: {
- beta: function () {
- console.log('updated')
+ beta: function (val) {
+ console.log('updated', val)
}
},
Okay, let's see what happens now.
chrome.exe > NEW_APP_NAME - Google Chrome
Hello. We're Betas Not being updated. You know, I I would guess that has to do it The way I wrote, this is probably the bind.
Code.exe > ● hello-world.ejs - paircast-sails - Visual Studio Code
Commit 1dbf89bbd154aabb96957698ae093da820ae8ea3
--- views/pages/hello-world.ejs
+++ views/pages/hello-world.ejs
@@ -1,6 +1,6 @@
<div id="hello-world" v-cloak>
<h1>Hello World!</h1>
- <a href="#" v-on:click="beta == false">Set beta to false</a>
+ <a href="#" v-bind:click="beta == false">Set beta to false</a>
</div>
<%- /* Expose server-rendered data as window.SAILS_LOCALS :: */ exposeLocalsToBrowser() %>
See if that works.
chrome.exe > NEW_APP_NAME - Google Chrome
chrome.exe > Computed Properties and Watchers — Vue.js - Google Chrome
Okay. Well, you know what? Let's just copy. Let's just look through the Ah watch example.