Skip to content

ngCookies - Cookie Methods Different for Angular 1.4 +  #22

Description

@mmansour

Hi -

Thanks for open sourcing this time saver.

I noticed the cookie methods in djangoAuth.js need to be updated for later versions of angular

delete $cookies.token;
changes to:
$cookies.remove('token');

$cookies.token
changes to:
$cookies.get('token')

$cookies.token = data.key;
changes to:
$cookies.put("token", data.key);

Not sure if the this project is still active but thought I'd make a note here if someone wants to try this with a newer version of angular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions