Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

Resetting a <select> selection

I'd like to be able to reset the selected <option> in the <select> to the default one (the disabled hidden one). <select ng-model="question1" ng-options="answer as answer.name for ...
Eyal's user avatar
  • 1,719
0 votes
1 answer
45 views

How to change the number of rows using a st-template

I've created a st-template that contains specific pagination functionality. Here is mine the div that calls the st-template: <div st-pagination="" st-items-by-page="itemsPerPage" st-displayed-...
Joe's user avatar
  • 795
0 votes
1 answer
223 views

Angular 1 dynamic form object

I'm using Angular 1 and creating a dynamic form. It works by looping through some objects and rendering dynamically binded input fields like: <div class="quest-form form-group" ng-repeat="task in ...
Jamie Barker's user avatar
0 votes
1 answer
80 views

AngularJS , adding 2 extra input text boxes with id and ng-model and they are not getting submitted

I have been modifying a form which I have done many times. This time someone I cannot figure out WHY it is not sending 2 extra fields Controller vm.question = {}; Now most of the time they will ...
user avatar
0 votes
4 answers
1k views

Updating only the 'view' value using angular directive

So I have a decimal value in controller like this: // Controller var MyController = function($scope) { ... $scope.percentValue = 0.05; // can be stored ... }; <!-- View --> <...
Kimchi Man's user avatar
  • 1,171
0 votes
3 answers
68 views

Why cannot I add new list in a table in angularJS 1.x?

I have example code below where I am supposed to create a list of items. <div ng-hide="listTrigger"> <!--FIRST TABLE--> <table class="table ...
Sachin's user avatar
  • 21
0 votes
1 answer
836 views

How to refresh data in angularjs kendo-multi-select

I am new to angularjs. i am using kendo multiselect i am adding data by default when loading the view. and i have one save button when click that button i am calling Success method inside that method. ...
Srinivas Ch's user avatar
  • 1,256
0 votes
3 answers
858 views

angularjs not updating model value

In my example I want to update model when user focus the textfield. In short append 'px' string to the existing value. HTML: <div ng-app> <div ng-controller="PixelCtrl"> <div> ...
Ashwin's user avatar
  • 12.5k
0 votes
1 answer
2k views

AngularJS input mask with validation

I have a directive which has a mask and validation for an input control. It's basically a time input where the user can input something like 45 (45 mins) or 2.5 (2.5 hours => 150 minutes). The input ...
Sean's user avatar
  • 15.2k
0 votes
3 answers
523 views

How to access the modalInstance $scope from outside the model

I want to update some value of a $modal in AngularJS but unable to understand how I can do this. Sample code is below: var modalInstance; function setupCall(data) { var templateURL = '...
user avatar
1 vote
0 answers
459 views

What is the difference between scope and model within a directive definition in AngularJS

I was wondering about the difference between scope and model within a directive. The following 2 directives behave exactly the same: angular.module( 'exampleApp', [] ) .directive( 'exampleDirective1'...
lumio's user avatar
  • 7,595
0 votes
0 answers
269 views

First option in the dropdown is not getting selected in an Angular app

I have following dropdown in the html template. <div class="row"> <label class="text-label hint--top-right hint--large" data-hint="{{customer.config.METHOD.DESCRIPTION}}">...
Pramodh's user avatar
  • 186
1 vote
1 answer
3k views

passing value from parent directive to child directive's template function

I'm trying to access value that is passed from the parent's directive on the child directive's template function. Please refer to the below plunker. Plunker Link CODE: Parent Directive: directive(...
Teja's user avatar
  • 133
0 votes
0 answers
908 views

Passing array with ng-model

I'm having a problem getting the values from multiple input fields, into a single string. The way I am currently trying to do it is to make each input field an index in the array. I made an array, ...
Lehi's user avatar
  • 27
0 votes
1 answer
76 views

Why can't I bind the initiated application variable's value to the HTML input control using 'ng-bind'?

I'm a newbie to this thing called 'AngularJS' so I got stuck at one point. Consider the below code sample : <!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/...
PHPLover's user avatar
  • 13k

15 30 50 per page
1
2 3 4 5 6