Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am spencermefford on github.
  • I am spencermefford (https://keybase.io/spencermefford) on keybase.
  • I have a public key ASBCU2o7qpTqFRWaG1nvxTuSZ-w4WjvcdXwZ0v4Kz8cr_go

To claim this, I am signing this object:

@spencermefford
spencermefford / angularjs_directive_attribute_explanation.md
Created August 11, 2016 20:29 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@spencermefford
spencermefford / 0-model-override.js
Created July 28, 2015 02:51
An alternative to extending Loopback's built in models. In our application, we wanted to create a custom role called "ecm-administrator" that would have the ability to create and manage users.
module.exports = function (app) {
var _ = require('lodash');
var User = app.models.User;
var Role = app.models.Role;
var RoleMapping = app.models.RoleMapping;
var ACL = app.models.ACL;
/*
* Configure ACL's
*/