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);
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
Post a Comment