Плагин графа зависимостей классов представления? [закрытый]

Со стороны сервера он возвращает created_at в виде строки из красноречивого слова.

Это может быть решено с помощью этого JavaScript,

new Date("date string here".replace(/-/g,"/"));

Таким образом, код,

$http({method: 'GET', url: 'http://localhost/app/blogs'}).
success(function(data, status, headers, config) {
   angular.forEach(data.posts, function(value, key){
     data.posts[key].created_at = new Date(data.posts[key].created_at.replace(/-/g,"/"));
   }
   $scope.posts = data.posts;
}).
error(function(data, status, headers, config) {
    $scope.posts = [];
});
37
задан Lii 12 May 2016 в 17:42
поделиться

2 ответа

Classycle can be a good start (for static dependencies between classes at least)

(I find their graph a bit complicated to follow though : CDA - Class Dependency Analyzer is an external tool, but produce much more readable dependency graphs)

12
ответ дан 27 November 2019 в 05:03
поделиться

Для более глубокого анализа ознакомьтесь с nWire .

5
ответ дан 27 November 2019 в 05:03
поделиться
Другие вопросы по тегам:

Похожие вопросы: