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 Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
output: '',
actions: {
displayBar(target) {
this.set('output', target.getAttribute('data-value'));
}
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Pods'
});
View components.rental-card.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['card', 'rental-card']
});
@Gaurav0
Gaurav0 / mirage.config.js
Last active Nov 20, 2018 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
View mirage.config.js
export default function() {
this.get('users/:id');
};
View components.base-profile.js
import Ember from 'ember';
import layout from '../templates/components/another-profile';
export default Ember.Component.extend({
layout,
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.x-example.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['component'],
classNameBindings: [
'flag:emberClassA:emberClassB'
],
flag: false,
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.user-profile.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['profile', 'content-box']
});
View controllers.application.js
import Controller from '@ember/controller';
import { action } from '@ember-decorators/object';
// decorators and class properties are not supported by twiddle
export default class extends Controller {
appName = 'Ember Twiddle';
constructor() {
super(...arguments);
You can’t perform that action at this time.