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

Ran into an issue with #! or a hash prefix #3

@zachgatesak

Description

@zachgatesak

I think that I actually found the fix for this but wanted to leave a note here in case someone where to run into this in the future or if the project could be updated not to have this issue.

My paths on the starting branch were showing localhost/notes/#!/... and when I'd click on a route it would leave me staring at the top page.

By adding these lines to the app/assets/javascript/routes.js:

angular.module('NoteWrangler').config(function($routeProvider,$locationProvider){
    $locationProvider.hashPrefix('');

Namely the $locationProvider and the change to the hashPrefix property I was able to resolve the issue and get it working with a current version of angular.

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