new Vue({
el: '#app',
data: {
variable1: 23,
variable2: 42
This file contains hidden or 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
{ | |
"dependencies": { | |
// Babel (ES6, ES7, Flow, etc...) | |
"babel-core": "5.8.*", | |
"gulp-babel": "5.2.*", | |
// CoffeeScript | |
"gulp-coffee": "^2.3.1", | |
// Sass and Scss |
This file contains hidden or 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 | |
trait CastsValueObjects | |
{ | |
protected function castAttribute($key, $value) | |
{ | |
$castToClass = $this->getValueObjectCastType($key); | |
// no Value Object? simply pass this up to the parent | |
if (!$castToClass) { | |
return parent::castAttribute($key, $value); |
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Обратите внимание, что клиент тут импортируется из ветки c2 репозитория centrifuge-js --> | |
<script type="text/javascript" src="https://rawgit.com/centrifugal/centrifuge-js/c2/dist/centrifuge.min.js"></script> | |
</head> | |
<body> | |
<input type="text" id="input" /> | |
<script type="text/javascript"> |