Skip to content

Instantly share code, notes, and snippets.

Serge S. Gulin GulinSS

Block or report user

Report or block GulinSS

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 injector.js
angular.module('...').directive('...', [
function() {
return {
scope: {
service: '@'
},
link: function (scope, elm, attrs) {
scope.serviceInjected = elm.injector().get(scope.service);
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am GulinSS on github.
  • I am gulinserge (https://keybase.io/gulinserge) on keybase.
  • I have a public key whose fingerprint is 83A1 DAFC 22FE D8F1 3FB5 1496 1D90 1D42 8C41 F966

To claim this, I am signing this object:

@GulinSS
GulinSS / services.spec.coffee
Last active Dec 21, 2015
ascii art in coffee tests
View services.spec.coffee
it "should resolve promise on click event of element and hide itself", test ->
resolve = jasmine.createSpy("on resolve")
@instance.promise.then resolve
@$apply =>
$("li:eq(1) a", @$menu()).click()
expect(resolve.method.mostRecentCall.args[0].text).toBe @parameters.elements[1].text
expect(@$menu().length).toBe 0
You can’t perform that action at this time.