Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
As in Vue.js assign the value obtained from the props variable?
0
like
0
dislike
6
views
Tell amp-TA how to assign an object received from the parent component via props variable in the data? I tried to use v-bind-html template but the value of a variable when getting data from outside is not changed.
vue.js
asked
Apr 12, 2019
by
rokerok_n
|
6
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
0
like
0
dislike
Why not use in the template the value of props, instead of to suffer with change tracking, etc.?
Well and so, you can certainly use a watch to watch for changes props's, and reassign whatever you need.
answered
Apr 16, 2019
by
0xD34F
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
And what does it do? Because the values from the props negativny. Through watch
https://codepen.io/VladIT4/pen/MGJwGO?editors=1010
UPD:
how to assign object
The object is even easier, because it is a reference type, then watch to do. The relationship is two sided.
https://codepen.io/VladIT4/pen/VxPLVo?editors=1010
but it is better not to do that, we need an explicit relationship between the components, through the v-bind and event.
answered
Apr 16, 2019
by
Vlad_IT
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
1
answer
As in the Vue to assign a variable to the name of the transition?
asked
Apr 27, 2019
by
ERomulon
animation
vue.js
0
like
0
dislike
2
answers
How to assign a value to a property in vue?
asked
Sep 5, 2019
by
kirill-93
vue.js
0
like
0
dislike
2
answers
How to assign a value to a property in vue?
asked
Aug 10, 2019
by
kirill-93
vue.js
0
like
0
dislike
2
answers
How to assign a value to a property in vue?
asked
Jul 4, 2019
by
kirill-93
vue.js
0
like
0
dislike
1
answer
How to use props component vue-ckeditor5 imported locally in Vue.js?
asked
May 20, 2019
by
SmIle1988
ckeditor
vue.js
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,186
answers
0
comments
33,932
users