marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 725 forks source link

url function of Entity returns undefined for "showView" and "deleteView" #1357

Open ashwanikumar415 opened 7 years ago

ashwanikumar415 commented 7 years ago

Description

The Description mentioned over "Entity Configuration" page for url() (https://github.com/marmelab/ng-admin/blob/master/doc/reference/Entity.md) doesnt work "entityName" argument returned is undefined for showView and deletionView. Note: Correct value is returned only in editionView

Steps to Reproduce

plunkr : http://plnkr.co/edit/ivjRaAK8S0bMQYOv9XOi?p=preview

  1. Clear logs in console window and run plunkr
  2. Select users from leftMenu
  3. click on "show", "edit" and "delete"
  4. Observe logs : apart from editionView , show and deletionView returns undefined

Expected behavior: entityName from deletionView: 1 entityName from showView: 1 entityName from editionView: 1

Actual behavior: entityName from deletionView: undefined entityName from showView: undefined entityName from editionView: 1