Linked Questions

152 votes
8 answers
114k views

I am learning AngularJS. Let's say I have /view1 using My1Ctrl, and /view2 using My2Ctrl; that can be navigated to using tabs where each view has its own simple, but different form. How would I make ...
JeremyWeir's user avatar
  • 24.4k
23 votes
5 answers
41k views

My angular app have 2 controllers. My problem is that the controllers does not keep the data when the user navigates away from the page. How can I store the selected data on of my controllers into ...
Bryan K's user avatar
  • 215
14 votes
4 answers
46k views

I am new to angular. I am using a service which gets a list of objects and displays them on the 1st page. Then based on what object was clicked, I am setting the tab header on the next page. But while ...
Nutan's user avatar
  • 1,548
5 votes
3 answers
32k views

I want to save my web data in the local storage. I have a table which I add to it data, it works with AngularJS. I would like the data to be saved, how do I do it ? the code : the html code : <!...
Ariel Livshits's user avatar
10 votes
1 answer
18k views

I have an Angular service that looks like: var lunchrServices = angular.module('lunchrServices', []); lunchrServices.service('authService', function () { var user = null; this.login = ...
Paymahn Moghadasian's user avatar
1 vote
2 answers
11k views

Have a question similar to this one. How do you save and load an image to and from localStorage, a personalized cache, using plain JavaScript?
Shakti Singh's user avatar
0 votes
2 answers
6k views

I am facing an issue with logout page.when logout option is clicked from a page, the login page has to be loaded and even when the user tries to click previous page arrow in browser, only the login ...
Deborah's user avatar
  • 243
1 vote
2 answers
1k views

I have a angularjs app which reads json from java when the user is logged in: $http({ method: 'POST', url: 'ws/login/user', data : user, cache: true }) .success(function (response) { ...
lucasbar's user avatar
1 vote
3 answers
1k views

I am new to Angular js and want to set the global variable that I can use it on different different services as webservice url. I have implemented app.js (module) like this: var app; (function () { ...
3 rules's user avatar
  • 1,381
1 vote
2 answers
1k views

We have a web application on angular.js which is using a REST search API to search some users on the system. /search/user?q='abc' Now on the web application when the user comes again, we have to ...
Vineet Singla's user avatar
0 votes
1 answer
1k views

I have a <select> element in my html page. The <option>s are given through a loop. The selected value is stored using a ng-model. This data is now push to a database. The next time that ...
Harish Prabhu's user avatar
1 vote
2 answers
930 views

I am looking for a way to set session and retrieve a session in angular js. I do have an idea in PHP which was $_SESSION['username'] = "xyz"; but I can't a way in angular. can someone please give me ...
Ankit Chaurasia's user avatar
0 votes
3 answers
556 views

I am having several links in asp pages and all links are having respected CSS. the 1st links is highlighted on the Home page with Different CSS. I want to toggle the CSS class on the the Click event ...
Vishnu's user avatar
  • 33
1 vote
2 answers
302 views

Im using UI-Router in my application and I have a state parameter where it doesn't really make sense for it to be part of the url. According to the documentation I am creating the parameter without ...
bradimus's user avatar
  • 855
1 vote
0 answers
342 views

I have two controllers that need to access a shared variable, which is done through a service component in AngularJS: angular.module('app').service('cacheService', cacheService); cacheService.$...
TonyW's user avatar
  • 18.9k

15 30 50 per page