parent
89e4f3decc
commit
156276e8f1
@ -0,0 +1,22 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>TP-noté</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<!-- la synthaxe {{ variable }} permet d'afficher le contenu de la variable -->
|
||||||
|
<h1>TP-noté</h1>
|
||||||
|
|
||||||
|
<!-- On déclare un événement via @nomEvent -->
|
||||||
|
<form-add-article @add-news="addNews"></form-add-article>
|
||||||
|
|
||||||
|
<awesome-article v-for="news in allNews"
|
||||||
|
:title="news.title"
|
||||||
|
:description="news.description">
|
||||||
|
</awesome-article>
|
||||||
|
</div>
|
||||||
|
</body>
|
Loading…
Reference in new issue