Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(guide/$location) html5mode example71 error #8226

Closed
@vandycknick

Description

@vandycknick

The html5mode example (example71) on the guid/$location docs mode is not working.

It's giving the folowing error:

Error: [ng:areq] Argument 'Html5Cntl' is not a function, got undefined
http://errors.angularjs.org/1.3.0-local+sha.d6876f2/ng/areq?p0=Html5Cntl&p1=not%20a%20function%2C%20got%20undefined
    at http://localhost:8000/build/angular.js:78:12
    at assertArg (http://localhost:8000/build/angular.js:1570:11)
    at assertArgFn (http://localhost:8000/build/angular.js:1580:3)
    at http://localhost:8000/build/angular.js:7442:9
    at http://localhost:8000/build/angular.js:6785:34
    at forEach (http://localhost:8000/build/angular.js:334:20)
    at nodeLinkFn (http://localhost:8000/build/angular.js:6772:11)
    at compositeLinkFn (http://localhost:8000/build/angular.js:6209:13)
    at compositeLinkFn (http://localhost:8000/build/angular.js:6212:13)
    at publicLinkFn (http://localhost:8000/build/angular.js:6104:30)

Steps to reproduce: https://docs.angularjs.org/guide/$location

Suggested fix:
Created plunker with working example: http://plnkr.co/aD1oGlMVEOENfXY1eKPx
This plunker is not optimized and I'm pretty sure there is a better way to tackle this problem

Tested in: IE, Chrome (Windows 8.1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions