Я хотел бы внедрить настраиваемую службу http в мое приложение для встроенной формы задачи.
Вот фрагмент кода:
<script cam-script type="text/form-script">
inject([ '$scope', '$http', function($scope, $http) {
camForm.on('form-loaded', function() {
// Custom service call
$http.get('http://localhost:8888/books/1').then(function(response){
alert(JSON.stringify(response.data));
});
});
}]);
When the form loads the http://localhost:8888/books/1 isn't invoked and I don't know why.