Skip to content

Instantly share code, notes, and snippets.

View shankarsridhar's full-sized avatar
🎯
Focusing

Shankar Sridhar shankarsridhar

🎯
Focusing
View GitHub Profile
@vasilakisfil
vasilakisfil / example-ApplicationRoute.js
Last active September 22, 2016 20:18
How to show API errors in Ember
import Ember from 'ember';
import Notify from 'ember-notify';
export default Ember.Route.extend(ApplicationRouteMixin, {
actions: {
error: function (errorObject) {
if (errorObject) {
if (errorObject.status === 401) {
return this.transitionTo('login');
@geksilla
geksilla / bootsrap_class_list
Last active April 29, 2023 03:59
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead