File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,44 @@ var vm = new Vue({
78
78
79
79
return str ;
80
80
}
81
+ } ,
82
+
83
+ // hooks vue.js
84
+
85
+ beforeCreate ( ) {
86
+ console . log ( 'beforeCreate' ) ;
87
+ console . log ( 'titulo' , this . title ) ;
88
+ console . log ( 'el' , this . $el ) ;
89
+ } ,
90
+
91
+ created ( ) {
92
+ console . log ( 'created' ) ;
93
+ console . log ( 'titulo' , this . title ) ;
94
+ console . log ( 'el' , this . $el ) ;
95
+ } ,
96
+
97
+ beforeMount ( ) {
98
+ console . log ( 'beforeMount' ) ;
99
+ console . log ( 'titulo' , this . title ) ;
100
+ console . log ( 'el' , this . $el ) ;
101
+ } ,
102
+
103
+ mouted ( ) {
104
+ console . log ( 'mouted' ) ;
105
+ console . log ( 'titulo' , this . title ) ;
106
+ console . log ( 'el' , this . $el ) ;
107
+ } ,
108
+
109
+ beforeUpdate ( ) {
110
+ console . log ( 'beforeUpdate' ) ;
111
+ console . log ( 'titulo' , this . title ) ;
112
+ console . log ( 'el' , this . $el ) ;
113
+ } ,
114
+
115
+ updated ( ) {
116
+ console . log ( 'updated' ) ;
117
+ console . log ( 'titulo' , this . title ) ;
118
+ console . log ( 'el' , this . $el ) ;
81
119
}
82
120
83
121
} )
You can’t perform that action at this time.
0 commit comments