Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does #! mean in ui.router?

I am using the Angular ui.router to navigate through my application. Usually, the url should look like this:

http://localhost:8001/#/start

But in my case, it looks like this:

http://localhost:8001/#!/start

What does it mean?

I also recognized that if I am calling an URL from this site which is different from my start page, I always get redirected as the URL seems to be invalid.

mainApp.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
'use strict';
$urlRouterProvider.otherwise('start');
$stateProvider
    .state('start', {
        url: '/start',
        templateUrl: 'views/start.html'
    })
    .state('registration-activate', {
        url: '/registration/activate/{activationKey}',
        templateUrl: 'views/registration-activation.html'
    })
    ;
    }]);

Whenever I try to call localhost:8001/#/registration/activate/xyz I get redirected to the start page.

like image 951
BigKahuna Avatar asked Dec 25 '16 00:12

BigKahuna


People also ask

What does the fox say Meaning?

Speaking of the meaning of the song, Vegard characterizes it as coming from "a genuine wonder of what the fox says, because we didn't know". Although interpreted by some commentators as a reference to the furry fandom, the brothers have stated they did not know about its existence when producing "The Fox".

What does a real fox say?

One of the most common fox vocalizations is a raspy bark. Scientists believe foxes use this barking sound to identify themselves and communicate with other foxes. Another eerie fox vocalization is a type of high-pitched howl that's almost like a scream.

How can I identify a song by sound?

On your phone, touch and hold the Home button or say "Hey Google." Ask "What's this song?" Play a song or hum, whistle, or sing the melody of a song. Hum, whistle, or sing: Google Assistant will identify potential matches for the song.


1 Answers

Okay guys, thanks for your explanations. I resolved my problem that I can't call a URL from a link simply by adding this to my configuration:

$locationProvider.hashPrefix('');
like image 78
BigKahuna Avatar answered Jan 03 '23 14:01

BigKahuna