All Questions
Tagged with angular-controller angularjs
337 questions
0
votes
0
answers
33
views
Angular JS Controller not rendering table
I am stuck on a problem.
I want to take first and last names as Input show them as full names and add them separately on a table by push method. Full name function is working properly but another ...
3
votes
1
answer
46
views
Get data between two controller that there are no any relation them in angular.js
I have two controller that they aren't any relation and want to know smtg in controller1 when happen a change in controller2.
like this: Update smtg in controller2 after changing controller1 to ...
0
votes
1
answer
64
views
DeepCopy in Angularjs?
Is there a way to add the $scope data to another $scope without changing the values from which it is added? Currently, I have created one button and whenever someones click on it the following action ...
0
votes
0
answers
634
views
Show a select field with options YES/NO without having a default option selected
I'm working on angularjs and I have a field that has two options YES/NO.
When someone will fill this field I need to show the two options but non of them is selected. So it will look like an empty ...
0
votes
1
answer
103
views
How to Access Internal script $scope value in controller function in angular JS
Here is HTML with internal script
<html>
<body ng-controller="test">
<span> {{data.name}} </span>
<input ng-model="data.name">
...
1
vote
2
answers
83
views
How to pass a parameter in AngularJS
I have a list of products in Angular JS and when I click the link for a certain item I want to sent the index of that product to a new page where to get all the details for that item (category, price ...
0
votes
0
answers
27
views
Sum of returned "fields" in ng-repeat showing in HTML page
I have an angular-js controller returning json data from the database.
I bind the returned data to the $scope.details var in the success function.
In the HTML I use the NG-REPEAT to show all the ...
0
votes
1
answer
42
views
AngularJS controller prepended by a ? In Chrome
Occasionally when I update some code in my controller and then check it in chrome it will throw a controller not registered error and also a syntax error. When I look at the chrome source files the ...
0
votes
2
answers
283
views
How to use Angular $scope.variable from controller 1 in ng-class of div using controller 2
I have 2 controllers boxController.js and homeController.js. On box.html page I initialize the boxController.js. Now, I need to use ng-class on box.html page but the variable I need to use inside ng-...
0
votes
1
answer
173
views
ng-click doesn't invoke method inside angularJs controller
I am trying to create an angular application from scratch. I have been trying to solve this for hours now, but I couldn't make it work.
All the following files are placed inside a parent folder.
...
1
vote
1
answer
263
views
Getting Error :[$injector:unpr] Unknown provider: dataServiceProvider <- dataService <- firstctrl
I am new to angular and creating my first application using angular in it and getting this error.
"[$injector:unpr] Unknown provider: dataServiceProvider <- dataService <- firstctrl"
Below is ...
0
votes
1
answer
275
views
Open multiple instances of same partial view and controller in angularJS
I am developing single page application using partial views and angularJS.
I am having a scenario where I have to open same partial view multiple times with different data.
I tried to make ...
0
votes
0
answers
166
views
Uncaught ReferenceError: MainCategoriesListController is not defined error is coming
The error:
MainCategoriesListController is not defined
is coming at its declaration only ,i.e, angular.module().controller(~~,~~).
Also, in categories state, in the resolve property when i try to ...
2
votes
0
answers
76
views
Angularjs locale in Controller
I am new to UI world and currently working on Localization. I was able to translate the texts which are in HTML files but came up in a situation where Controller returns a list of values which is ...
0
votes
2
answers
53
views
Push data from controller to JSON in service
I am facing a problem in pushing data value to a JSON which is in service. I have less idea of pushing data to service in AngularJS.
Example I have created a function to show year and time in ...