I have a question about angularjs. I have an index.html and arama.html and arama_sonuc.html. In arama.html I have two textboxes with start and end address(Google Maps Autocomplete). I want to show the value of these two textboxes in arama_sonuc.html.
Below you can see my source code:
var app = angular.module('plunker', ['ui.router','ngAutocomplete']);
app.config(function($stateProvider, $urlRouterProvider) {
// For any unmatched url, send to /index
$urlRouterProvider.otherwise("/arama");
$stateProvider
.state('arama', {
url: "/arama",
templateUrl: "arama.html",
controller: "aramaSayfasiniCagir"
})
.state('aramaSonuc', {
url: "/aramaSonuc",
templateUrl: "arama_sonuc.html"
//controller: "aramaSayfasiniCagir"
});
});
app.controller('aramaSayfasiniCagir', function($scope, $location){
$scope.LoginCheck = function() {
$location.path("aramaSonuc");
};
});
app.controller("inputCtrl",function ($scope) {
$scope.result1 = '';
$scope.options1 = {
country: 'tr'
};
$scope.details1 = '';
$scope.result2 = '';
$scope.options2 = {
country: 'tr'
};
$scope.details2 = '';
});
Here is a demo plunker: http://plnkr.co/edit/3vczoJLf7pc0TOocq6nA?p=preview
Can you help me?