Skip to content

"io is not defined" error when using MEAN.js #77

@skyserpent

Description

@skyserpent

Hey everyone, I'm using socket.io@0.9.x and I have made a gist of my angular controller here:
https://gist.github.com/skyserpent/832f980ca9ed9ed30e4b

My JS assets are loaded like this:
...
'//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js',
'public/lib/angular-socket-io/socket.js'

I have even included 'btford.socket-io' in Angular's 'applicationModuleVendorDependencies' but for some reason I get an error saying "io is not defined" in line 6 of the gist I uploaded.

Any help is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions