Skip to content

Element.bind is not function (while using ui-sref) #2743

Closed
@mehowp

Description

@mehowp

Hello.

I'm using angular 1.5.5 and newest ui-router (0.2.18). I have successfuly configured my angularjs app, states works fine but problem occurs when I'm trying to use ui-sref directive:

Error: element.bind is not a function
$StateRefDirective/<.link@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:8499:7
invokeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:18486:9
nodeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17885:11
compositeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17189:13
compositeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17192:13
compositeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17192:13
compositeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17192:13
publicLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17069:30
browserifyShim/</ngIncludeFillContentDirective</<.link@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:34659:9
invokeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:18486:9
nodeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17885:11
compositeLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17189:13
publicLinkFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17069:30
lazyCompilation@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17407:16
boundTranscludeFn@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17206:16
controllersBoundTransclude@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:17935:20
ngIncludeWatchAction/<@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:34605:27
processQueue@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:24753:28
scheduleProcessQueue/<@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:24769:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:26021:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:25837:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:26129:13
done@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:20364:36
completeRequest@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:20570:7
requestLoaded@http://localhost/iw/wp-content/themes/bbstudio-michal/resources/includes/js/angular.js:20503:9

<a class="navbar-brand" ui-sref="header">

Does anyone know why this happen and how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions