Skip to content

ng-admin 0.3.2 : label is undefined #123

@2anandkr

Description

@2anandkr

I downloaded the app (ver. 0.3.2) yesterday & Configured it but it bugged!

var user = new Entity('users');
 app.addEntity(user); 
user
    .label('Recent Users')   // does not work

angular throws this:

Uncaught Error: [$injector:modulerr] Failed to instantiate module adminApp due to:
TypeError: undefined is not a function
    at http://localhost:3000/config.js:41:8   --> points to where label(..) is defined

If I remove label(..) call, it shows the dashboard correctly.
But when I click the items on left (to list the users), angular again throws:

TypeError: undefined is not a function
    at new a (http://localhost:3000/ng-admin-app/bower_components/ng-admin/build/ng-admin.min.js:9:11646)

In the page, I see this: {{ listController.title }}

Inspecting the above ng-admin.min.js the error points to section: this.entityLabel=this.view.label()

How to get rid of it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions