tengo esta estructura:
Object { cid: "c130", attributes: {…}, collection: {…}, _changing: false, _previousAttributes: {…}, changed: {}, _pending: false, _lastTeamSession: false, _events: {…}, _listenId: "l131", … } _changing: false _events: Object { all: (1) […], change: (1) […], destroy: (1) […], … } _lastTeamSession: false _listenId: "l131" _listeners: Object { l32: {…}, l133: {…} } _pending: false _previousAttributes: Object { duration: "00:00", value: 5, format: "1", … } attributes: Object { duration: "53:04", value: 5, format: "1", … } athlete: Object { cid: "c11", _changing: false, id: 6, … } duration: "53:04" format: "1" teamsession: Object { cid: "c8", __version: 43, _changing: false, … } value: 5 <prototype>: Object { … } changed: Object { duration: "53:04" } cid: "c130" collection: Object { length: 1, models: (1) […], _listenId: "l31", … } <prototype>: Object { … }Como puede ver en los atributos, tengo una clave de duración y su valor es "53:04".
Quiero asignar este valor a una variable usando: let duration = this.model.get("duration"); , pero obtengo que el valor de la duración es "00:00" y no entiendo por qué... ¿Alguien puede ayudarme?