Skip to content

Instantly share code, notes, and snippets.

jennevdmeer / Example.php
Last active Feb 10, 2020
Symfony IsRepeated validator.
View Example.php
* @Assert\NotBlank(message="account.password.not_blank")
* @Assert\Length(min=3, minMessage="account.password.length.min")
* @IsRepeated(message="account.password.not_equal", property="passwordRepeated")
public $password = null;
jennevdmeer / Component.vue
Last active Jul 5, 2019
Vue self removing initializer with external props
View Component.vue
{{ foo }}
{{ helloWorld }}
export default {
name: 'entry-component',
View 1

promise is the promise object, this property is being watched so will reset on change. And default to default if none is provided.

reset on 0 wont reset the button's finaly state, however when a number is entered it will reset to 'default' after said timeout is finished.

disable can be used to disabled the button (button also disables itself while loading, so need to do

You can’t perform that action at this time.