All Questions
Tagged with angularjs-scope angularjs-ng-click
81 questions
0
votes
1
answer
101k
views
Angular.js unable to change scope variable value just after a different function call
I'm trying to implement a Refresh button for fetching latest search results from an external index. When I click on the Refresh button the icon is supposed to spin. My plan was to have a scope ...
1
vote
1
answer
101k
views
In an Angular.js controller's scope function code doesn't run below a $timeout statement inside
I have a button for which I have set ng-click="refresh()". The console logs before the timeout function logs correctly but the console log inside the $timeout block and after the block doesn'...
0
votes
2
answers
690
views
AngularJS ng-click only working on second click
Attempting to collapse a dropdown menu (language selection), within a mobile bootstrap navbar. On first click, the dropdown menu with the languages opens fine, after changing languages the dropdown ...
1
vote
0
answers
21
views
After mdBottomSheet hide its remove ng-click fire
i insert in my code mdBottomSheet show and button that open it.
this is my mdBottomSheet code:
$scope.selectPhoto = function () {
var options = {
templateUrl: 'student-details/camera-buttons....
-2
votes
2
answers
826
views
Call a method only if my $scope variable is false
I've a div on click of which I'm calling a method.
Now, there's a 'Cancel' button, on click of which I'm setting a $scope.variable to true.
Next, I need to execute my function on click of the 'div', ...
1
vote
1
answer
137
views
Finding scope inside ng-repeat for ng-click
I have a very complex nested angular object.
Now at the end of the object ng-click didn't work.
I read on how angular scope works, and I get that ng-click create a child scope for each item in the ...
0
votes
1
answer
58
views
How do you fire a button click that does different things based on which Controller is on the view?
QUESTION
How do you fire a button click that does different things based on which Controller is on the view?
SITUATION
Below I have two directives/controllers that share the same template view. All ...
1
vote
1
answer
119
views
Changing value of $scope on ng-click with ui-sref
This is absolutely killing me.
This is where I'm at:
And when I arrive to this page it prints this into the console:
Then I click on lorem2 which as a ng-click thats supposed to change the displayed ...
0
votes
1
answer
450
views
attach onclick/ng-click event to element in grid databound event
I have a TypeCtrl ES6 class angular controller which uses a kendo datagrid directive and has template for grid config options , In the template for the grid, i need to call a method from the TypeCtrl ...
0
votes
1
answer
834
views
Two way binding for ng-click directive in angularjs
I have calling a function in two elements. when I triggering the function an on-click event then also it should be hit once more time for wherever I called that function.
//html
<button type="...
1
vote
0
answers
639
views
Again: ng-click not working inside ng-repeat inside ng-if
This is most likely going to be another Angular scope question. I looked hard for a solution on SO, however, nothing I found would solve my problem.
I am using Angular.js together with Swiper.js. ...
0
votes
1
answer
464
views
Laravel parent variable ng-click
I am having troubles with Angular in Laravel. I am trying to change a variable by clicking on a button.
For this I wrote the following code:
<div class="user-team-navigation col-sm-12" id="user-...
1
vote
1
answer
180
views
How To Pass Template-Defined Variable to Angular Controller
This question is a long overdue extension of Angularjs How to pass parameter back to controller from directive with ng-click in which strings are able to be passed to an Angular controller, but ...
0
votes
2
answers
4k
views
How can I change URL from $scope in AngularJS?
I have made access navigation with $scope and I used them based on click and I did. I can't set URL in variable accommodate. The correct URL is http://www.example.com/base/index or http://www.example....
0
votes
0
answers
83
views
Angular two forms, two ng-click, same function, only the first one runs
I have two forms on a page. The first adds an item to the database, and the second is prepopulated with the data and allows the user to modify the item. The first form allows the user to create and ...