angularjs - How to access JSON payload -
i have bit of problem trying use json load angular-translate. mean, how can access it? file loads , other don't know how set it.
i want to like:
$scope.translations = /* json */
here code loading file.
angular.module('app.core').config(config); /* @nginject */ function config($translateprovider) { $translateprovider.usestaticfilesloader({ prefix: '/assets/lang/', suffix: '.json' }); $translateprovider.preferredlanguage('fi'); }
Comments
Post a Comment