This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Hello Vue</title> | |
</head> | |
<body> | |
<div id="app"> | |
<textarea v-model="message"></textarea> | |
<pre> | |
{{ $data }} | |
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Hello Vue</title> | |
</head> | |
<body> | |
<div id="app"> | |
<textarea></textearea> | |
</div> | |
</body> | |
// js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// html | |
<html> | |
<head> | |
<title>Hello jQuery my old friend</title> | |
</head> | |
<body> | |
<h1>Hello from darkness</h1> | |
<input id=”message”> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// html | |
<div id=”app”> | |
<h1>{{ message }}</h1> | |
<input v-model=”message”> | |
</div> | |
//js | |
<script> | |
new Vue({ | |
el: ‘#app’, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// html | |
<div id=”app”> | |
{{ message }} | |
</div> | |
// js letakkan pada <script></script> | |
<script> | |
var app = new Vue({ | |
el: ‘#app’, | |
data: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang=”en”> | |
<head> | |
<meta charset=”UTF-8"> | |
<title>Intro vue</title> | |
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity=”sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ” crossorigin=”anonymous”> | |
</head> | |
<body> | |
<div class=”container”> | |
// your vue dom goes here soon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$users = [ | |
[ | |
'id' => 1, | |
'name' => 'Adimas Lutfi Wicaksono', | |
'gender' => 1, | |
], | |
[ | |
'id' => 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$users = ['Asep Dadang Supriadi', 'Akmal Fuady', 'Yandi Fitriyanto']; | |
$users_new = 'Ricky Andika Putra'; | |
array_unshift($users, $users_new); | |
print_r($users); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$users = ['Asep Dadang Supriadi', 'Akmal Fuady', 'Yandi Fitriyanto']; | |
$users_new = 'Ricky Andika Putra'; | |
// pake unsift masuknya ke awal, pake push kok jadi integer, aneh :| | |
array_push($users, $users_new); | |
print_r($users); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$users = [ | |
[ | |
'id' => 1, | |
'name' => 'Adimas Lutfi Wicaksono', | |
], | |
[ | |
'id' => 2, | |
'name' => 'Salman Alfarisi', |
NewerOlder