Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

$sailsSocket.on() function is 'undefined' #40

@key10

Description

@key10

I'm in the process of switching our code from using angular-sails to using your angularSails, however, it seems that there are some issues.

  1. in your repo, you have an examples folder with both a www and an assets folder. These two seem to be using different approaches to including the angularSails (www seems to be using something completely different). So it is not clear which is the advised way.
  2. [the main issue I am writing for] when adding the 'sails.io' dependency into my module declaration, and injecting '$sailsSocket' into my controller, it is saying that 'on' ($sailsSocket.on()) is undefined. Looking at the dist/ngsails.io.js file, line 587 has 'createShortMethods' for 'get','delete','head' and then line 634 has the 'createShortMethodsWithData' function for 'post','put'. The comment block starting on line 617 mentions the on method, but it doesn't seem to be included in either of these two function calls.
  3. a detailed example on the JSDocs would be great for the preferred implementation of this.

Any help that you guys can provide would be a great help!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions