Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
44 views

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
46 views

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
226 views

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
81 views

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

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

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
841 views

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
868 views

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

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

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
460 views

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,605
0 votes
0 answers
276 views

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

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

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

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
1 vote
1 answer
65 views

Is there a way to maintain $scope when changing views and coming back? When i load a certain view there is some heavy loading (loading data), but if i switch views and comeback to this one al the ...
user3452075's user avatar
0 votes
0 answers
128 views

I have my input directive which takes the input value from html, and updates the angular model: .directive('input', function($parse) { return { restrict: 'E', require: '?ngModel', link: ...
Kim T's user avatar
  • 6,598
0 votes
1 answer
58 views

I have an Angular application where in I'm pulling from a model some data which is saved on the load of the app. For simplicity sake, I've explicitly defined the data which is being pulled. The issue ...
Gary's user avatar
  • 395
0 votes
1 answer
87 views

I have some tasks to do . I want to make sure that each task has a maximumFundPossible property of $1000 constant, a currentfund property that is variable as it will be updated as tasks are being ...
codigomonstruo's user avatar
0 votes
1 answer
1k views

I have this html markup: <div data-ng-controller="VehicleProfileController"> <modal title="Add Vehicle Info" visible="showVehicleInfo"> <div class="container"> <div ...
Laziale's user avatar
  • 8,315
1 vote
0 answers
249 views

I have read these answers by Izhaki and Artem Platonov on Understanding Design Patterns and have some questions about this approach. They might be trivial, but I need some answers. The final answer ...
Elad Israeli's user avatar
0 votes
1 answer
356 views

Here's my template, I am dynamically creating input elements to be used in a form. When I submit the form nothing is passed to the update() function designated on the submit element as nothing appears ...
LaserBeak's user avatar
  • 3,295
1 vote
2 answers
1k views

I try to get the value of my input date html 5 component by binding it with ng-model like this: <input type="date" id="dateFin" class="form-control" name="dateFin" ng-model="filtres.dateFin" ...
Ceddoc's user avatar
  • 243
0 votes
1 answer
207 views

I have a table with 'n' number of rows and by default i have set to display 10 rows in each page as the table is a paginated column. I am now trying to include a text box where user can enter number ...
Deepu RG's user avatar
0 votes
1 answer
571 views

I am using angular model service ($modal) display pop-up. I am facing a problem like when user click backspace on the model window, parent window gets navigating to previous page. How do i resolve ...
Velkumar's user avatar
  • 511
0 votes
1 answer
2k views

I am display a modal where if the user click on delete button I want to call delete() from controller A inside controller B I am refactoring the Todo App example code at AngularJS website (based on ...
Ahmad Saleh's user avatar
0 votes
3 answers
418 views

I'm having the most difficult time trying to find a way to make sure the parent scope's collection is updated with the saved information from a modal. The parent has a collection of event speakers, ...
Will Strohl's user avatar
  • 1,690
0 votes
1 answer
1k views

I have a form with fields that are editable by the user. Some of them, until they are $dirty (edited by the user) will update automatically with suggested values. I want to mark this change (flash ...
Daniel's user avatar
  • 349
3 votes
1 answer
1k views

Is there any way how to trigger validation when using ngModelOptions? My use-case is to have a form with all fields updating the ngModel on submit (due to the fact that I would like to revert the ...
kuceram's user avatar
  • 3,905
1 vote
2 answers
940 views

Here is a simple Angular example: <!DOCTYPE html> <html ng-app="GenericFormApp"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js">&...
Vivian River's user avatar
  • 32.6k
0 votes
1 answer
70 views

i've a strange behaviour with a model. $scope.ev = temp; <input type="text" class="form-control" id="inputDataFineEv" ng-model="ev.dataOraFineEvento" placeholder="Data fine" value="{{ev....
amagtra's user avatar
  • 45
2 votes
1 answer
21k views

I have create tabbed ionic application in VS2015. Now I want to add there simple list with possibility add/remove items (something similar to this - sample of angularjs app) My HTML code (tab-chats....
RredCat's user avatar
  • 5,441
1 vote
1 answer
3k views

HTML: <html ng-app="app"> <div class="container" style="margin-top: 30px"> <input type="text" ng-model="newName" key-filter/> <input type="text" ng-model="newName" key-filter/...
Octavian Lari's user avatar
0 votes
3 answers
39 views

My situation right now is that I have a model that loads like 50 car informations. In the view I have a sidebar with some filters like, year, model, mileage, etc.. When I filter those, everything ...
Fernando Claussen's user avatar
0 votes
1 answer
2k views

I have a global search variable that is used by the whole app newspaper.controller("MainController", function($scope) { $scope.search = {query:''}; }); Then I have a contenteditable div that I ...
BathgateIO's user avatar
0 votes
1 answer
52 views

I use this code to add a property in the filter when a checkbox is cheked. <input ng-model="filter['model']['first']" value="first" type="checkbox" name="model"> I tried to do this in the ...
user567's user avatar
  • 3,882
1 vote
2 answers
501 views

I need the following functionality: When a user goes to the login form, the browser should auto fill the username and password. My implementation works (on FF and Chrome) but, there is this bug (not ...
Ioana Cucuruzan's user avatar
0 votes
1 answer
38 views

http://plnkr.co/edit/7OnKAGvVNXWLwN5fZqJu?p=preview I'm setting up a question related to infinite scroll and noticed that when I update the $scope.tags array I have once the tags have been scrolled ...
Leon Gaban's user avatar
  • 39.4k
0 votes
1 answer
1k views

I have this basic fiddle which is a cut down version of what I have on my site. I was wondering if there is a way to bind the table rows dynamically to a text area to create a ng-model composed of ...
user1231232141214124's user avatar
1 vote
2 answers
3k views

I have have an input field which is attached an Angular UI datepicker. Below that, I added 2 buttons to change date, "day by day". Here is the input part (just after in my page): <p class="input-...
Pierolain's user avatar
  • 189
2 votes
1 answer
1k views

What is working: The ng-options contains all names and it is shown in the dropdown-list. Problem: At the beginning if nothing is selected, there should the text "Select name..." displayed. But it's ...
Marcel Tinner's user avatar
0 votes
0 answers
814 views

This is a simplified example of a bug we faced in our project recently. I have a list of objects with "name" and "position" properties and wanna use TinyMCE editor instead of textarea to display "...
Ilia Syrtsou's user avatar
7 votes
2 answers
898 views

I have a list of objects in my scope and want to iterate over them, show some of their properties in ordered-by-some-property way and change them. ng-repeat is used to display textboxes binded to ...
Ilia Syrtsou's user avatar
0 votes
2 answers
748 views

Is it not possible to use strongly typed objects in asp.net mvc to initialize ng-model properties as currently the view value is getting cleared as soon as ng-model property is getting bind to view.I ...
Mayank Singh's user avatar
2 votes
0 answers
128 views

I am having an angular directive that is compiled and inserted into CKEditor. Furthermore i have a widget plugin that upcasts those directives to widgets and allows few of their fields for editing. In ...
radpet's user avatar
  • 731
0 votes
1 answer
366 views

I have an input form like this: <form name="userForm"> <md-input-container> <label>Username</label> <input name="username" ng-model="userLogin.username" ...
dragonmnl's user avatar
  • 15.6k
0 votes
2 answers
690 views

Im wondering what is the correct approach about software design & best practice for angularjs modals. In my application I have the main window which is using its own controller, and there I have a ...
buddy123's user avatar
  • 6,407
1 vote
2 answers
3k views

Ugh I'm stuck in one of those Angular binds (no pun intended) where I can't get my controller to talk to my directive. My directive is the following, a select dropdown with a template: app.directive(...
Union find's user avatar
  • 8,280
0 votes
1 answer
1k views

I'm attempting to grab the user.firstName and user.lastName, add a watch collection to those models, and spit back out a userName. I can't seem to communicate between the two, I think I'm using ...
Tuesdave's user avatar
  • 669
0 votes
3 answers
1k views

I go the list view page click on edit of any element. Change something on textbox and click cancel. This navigates to list view but the entry is now updated even without me saving. Route (function ()...
aWebDeveloper's user avatar