Skip to content

Instantly share code, notes, and snippets.

💭
I'm looking for new opportunities!

Gaurav Munjal Gaurav0

💭
I'm looking for new opportunities!
Block or report user

Report or block Gaurav0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View controllers.application\.js
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@tracked
fruits = [
'apples',
View controllers.application\.js
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@action
onRouteChange() {
console.log('changing route');
}
View controllers.application\.js
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
theColor = 'red';
}
View controllers.application\.js
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
View components.change-password-form\.js
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
export default class ChangePasswordForm extends Component {
@tracked oldPassword;
@tracked newPassword;
@tracked confirmPassword;
View components.my-component\.js
import Component from '@ember/component';
export default Component.extend({});
@Gaurav0
Gaurav0 / components.my-component\.js
Created Mar 12, 2020 — forked from jelhan/components.my-component\.js
ember-bootstrap-changeset-validations-upgrade-v3-bug
View components.my-component\.js
import Ember from 'ember';
import Changeset from 'ember-changeset';
import lookupValidator from 'ember-changeset-validations';
import { validateLength } from 'ember-changeset-validations/validators';
const Validations = {
name: validateLength({ min: 2 }),
};
export default Ember.Component.extend({
View controllers.application\.js
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
You can’t perform that action at this time.