Моя форма отлично работает в браузере на компьютере, но не в мобильном.
Моя HTML-форма
<!-- Header Search Form -->
<div ng-show="true" style="background-color:black" class="header-search-form header-search-form--right">
<form ng-submit="search(searchText)" id="mobile-search-form" data-ajax="false" class="search-form">
<input type="text" ng-model="searchText" class="form-control header-mobile__search-control" value="" placeholder="Arama">
<button type="submit" class="header-mobile__search-submit">
<i class="fa fa-search"></i>
</button>
</form>
</div>
<!-- Header Search Form / End -->
Она выполняет поиск.
В браузере на компьютереон работает следующим образом:и перенаправляет на главную страницу.
Какая должна быть проблема?
РЕДАКТИРОВАТЬ:
Это мой контроллер
$rootScope.hideNews = true;
$scope.search_string = $routeParams.param1;
$window.document.title = $scope.search_string + ' için arama sonuçları';
$window.scrollTo(0, 0);
var parseAPI = "xxx";
var parse_app_id = "xxxxxxx";
var parse_rest_api_key = "xxxxxxx";
$scope.startLimit = 10;
$scope.makeSearch = function (searchString) {
$http({
method: 'GET',
url: parseAPI + "/WebNews",
cache: true,
headers: {
'Content-Type': 'application/json',
'X-Parse-Application-Id': parse_app_id,
'X-Parse-REST-API-Key': parse_rest_api_key
},
params: {
where: {
'content_category_id': {
'$ne': 'gerter2312'
},
'text_content': { "$text": { "$search": { "$term": searchString } } }
},
limit: $scope.startLimit,
order: '-createdAt'
}
})
.then(function (result) {
console.log(result);
$scope.searchResults = result.data.results;
if ($scope.searchResults.length <= 0) {
$scope.nullResult = true;
}
}, function (error) {
console.log(error);
});
};
$scope.makeSearch($scope.search_string);
$scope.loadMore = function () {
$scope.startLimit += 10;
$scope.makeSearch($scope.search_string);
};
И мой конфиг для поискастраница
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/arama/:param1', {
templateUrl: 'search/search.html',
controller: 'searchCtrl'
});
}])