javascript - Console log read data property -


i'm tring use console log checks object in js project. in

scope.files; 

i have written data file.

output from

console.log(scope.files); 

is: enter image description here

how read name object?

var name = scope.file.file.name;

that dosen't work.

i'd write id on same level written name in way:

var file_id = data.success; scope.files.id = file_id; 

sorry if question easy, i'm beginner ;)

i greatful ;)

scope.file array of objects (inheriting file).

0: file    ... 1:file 

in log means theres file @ index 0. access have pass index:

console.log(scope.file[0].name); 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -