Hey there,
I'm just starting out with vue.js and I've hit a roadblock on something that doesn't seem too complicated.
I'm trying to pass my list of localities to the adduser component so that when creating a user, they have to select localities.
But I can't seem to pass the list to him even though I know I need to use props. Can anyone help me out?
Component Add User :
<template>
<div class="submitform">
<div v-if="!submitted">
<div class="form-group">
<label for="nom">Nom</label>
<input type="text" class="form-control" id="nom" required v-model="utilisateur.nom" name="nom">
</div>
<!-- Rest of the code omitted for brevity -->
</style>
Component Localite:
<template>
<div v-if="this.localite">
<h4>Localite</h4>
<div>
<label>CP: </label> {{this.localite.cp}}
</div>>
<!-- Rest of the code omitted for brevity -->
</script>
Thank you!