Skip to content

ERROR TypeError: childrenSrefs.concat is not a function #760

@Vedeep

Description

@Vedeep

Hello, please check the problem in the uiSrefActive directive(

this._srefChangesSub = this._srefs.changes.subscribe(srefs => this._srefs$.next(withHostSref(srefs)));
), it seems that srefs.toArray () is missing.

Example: http://plnkr.co/edit/NLgxhon9x316ltSd?open=lib%2Fapp.ts&deferRun=1
When we click "Test Link" a message appears in the console:

ERROR TypeError: childrenSrefs.concat is not a function
at withHostSref (VM513 uirouter-angular.umd.dew.js:1280)
at VM513 uirouter-angular.umd.dew.js:1286
at SafeSubscriber.schedulerFn [as _next] (VM517 core.umd.dew.js:30944)
at SafeSubscriber.__tryOrUnsub (VM381 Subscriber.dew.js:279)
at SafeSubscriber.next (VM381 Subscriber.dew.js:208)
at Subscriber._next (VM381 Subscriber.dew.js:140)
at Subscriber.next (VM381 Subscriber.dew.js:109)
at EventEmitter.Subject.next (VM400 Subject.dew.js:103)
at EventEmitter.emit (VM517 core.umd.dew.js:30887)
at QueryList.notifyOnChanges (VM517 core.umd.dew.js:31123)

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