android - Navigation In Ionic Angular.js -


i new in ionic , want navigate home url new url in ionic blank application. can tell me how achieve this. here code:

app.service('sharedproperties', function () { var username= '',password=''; return { setlistname: function(user,pass) { username= user; password= pass; }, getstatus: function() { if(username=='feat',password=='password') { return succes; } } }; });  app.controller("mynotectrl", function($scope,sharedproperties) { $scope.save=function(parameter1,parameter2) { sharedproperties.setlistname(parameter1,parameter2); alert("value passed services"); } $scope.getstat = function() { $scope.msg = sharedproperties.getstatus(); } }); app.js var app = angular.module('mynoteapp', ['ionic', 'mynoteapp.controllers', 'mynoteapp.services']); 

probably new in angular.js also.

you can use $location service navigation.

how use

first add $location controller/factory/service parameter list. if not please follow link or any link google

then inside of controller/factory/service use

$location.path = '/home'

if current location http://domainname.com/#/page1 changed http://domainname.com/#/home.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -