unserver-unify
Version:
15 lines • 625 B
JavaScript
;
angular.module('bamboo.additional').controller('FeaturesCtrl', function(ApiService, $scope) {
this.schoolIconUrl = this.schoolurl = $scope.schoolUrl = ApiService.SHOST + "/public/" + ApiService.RES + "/school/" + ApiService.gid + "/";
this.photoPath = ApiService.SHOST + '/advinfo/';
function getFeatures() {
ApiService.get("/schooldoc/" + ApiService.school.homepageFunctionDoc).then(function(result) {
console.log(result);
if (result.data.success) {
var value = result.data.data;
$scope.learningSlides = value.arrays;
}
});
}
getFeatures();
});