Tagged Questions
0
votes
2answers
32 views
how to pass multiple services in controller in angularjs?
I have a service called authService. I call it from the Logincontroller as follows :
angular.module('myApp').controller('LoginController',function($q, $scope, $location,$routeParams, $window, ...
0
votes
2answers
172 views
Ng-repeat not showing JSON data in Angular-UI
I am trying to pull in data from a JSON file and use it to populate a navigation menu, composed of Divs that collapse using the Angular UI collapsible function.
I've enclosed a plunk: Plunk of the ...
0
votes
2answers
92 views
Angular JS: How to get values in Cookies in different pages once it is set after login
I am using Angular JS to develop a application. I want to maintain some useful data in cookies so that I can use it through whole application after user login. I have tried for $cookies and ...
0
votes
2answers
229 views
How to assign value to ng-model definition
I am using ui-bootstrap for typeahead in my application.
<input type="text" ng-model="newItem.id" class="form-control">
<pre>Model: {{customSelected | json}}</pre>
<input ...
0
votes
2answers
205 views
Angular function with ng-if rendering figure
In my showCtrl I have this
$scope.showTeam = function(){
var count = 0;
for (var k in subordinates) {
if (subordinates.hasOwnProperty(k)) {
...
3
votes
1answer
523 views
Angular.js - does form validation emit any events?
The problem is, I'm using ui-router and I have two views, one is kind of a toolbar, second is content with a form.
Now I'd like to have a save button in the toolbar, which would be disabled if form ...
2
votes
1answer
242 views
Date picker is not working in AngularJS (ng-grid) “editableCellTemplate”
columnDefs: [{
displayName: 'Date',
field: 'date',
editableCellTemplate: '<input type="text" ng-class="\'colt\' + col.index" ...
2
votes
1answer
438 views
background default image if ng-style image loaded is invalid url
I am adding background images to my div like this
ng-style="{'background-image' : 'url('+ myvariable.for.image +')'}">
where myvariable.for.image is a url like /examplesite/image/id
This works ...
1
vote
1answer
40 views
Getting dynamic form values
Is there a way to check which like option is selected for which text box when submitted.
As shown below user may select like only for some text values. The html tags are dynamically generated based on ...
1
vote
1answer
221 views
making a ajax call to populate scope data in angular js
Hello i have a angular js controller like this
function InstantSearchController($scope){
$scope.items = [
{
url: 'http://tutorialzine.com/2013/04/services-chooser-backbone-js/',
...
0
votes
1answer
23 views
AngularJS model changes not shown in GUI after directive changes it
I am having an issue where I have a model:
<div ng-model="currentAudio">...</div>
I have a button (within and ng-repeat in the div of the model above):
<button ...
0
votes
1answer
18 views
shortenning angular code to one method
how can I shorten my code so I dont have to use two different methods to do a file upload for two different fields
this is what I have
<input type="file" name="file" ...
0
votes
1answer
68 views
Angular UI Bootstrap - Collapsing tab content
Using the AngularJS UI Directives for bootstrap, is there any way to collapse the tab content using the tag?
I have several tabs/pills with content, which will start collapsed (hidden). When any of ...
0
votes
1answer
55 views
how to do filter using range slider in angularjs
In my application, I have used pricing slider. When I change minimum and maximum value of pricing slider, I need to filter based on the range. In angularjs, how to do this one. Can you please any one ...
0
votes
1answer
21 views
Need to $watch property from within an accordion (Angular-UI) but won't work
We're building a page with Angular, Angular-UI and UI-Bootstrap. The last one includes a directive for accordion, which simplifies a quite repetitive task of building up an accordion and an accordion ...
0
votes
1answer
91 views
AngularJS UI router - Pass angular object to ui-router controller method?
I want to pass the data of the function PhoneList() to the UI-Router controller function to the state 'phonedescription'.
JS:
var myApp = angular.module('myApp', ["ui.router"]);
...
0
votes
1answer
38 views
I am able to query my api call, but i am not able to show it via angular
I have made an JSON api. I like to query this with angular.js. On my webserver i see the request comes in, and returns a status 200, so the data are called by angular. For some reason however, i am ...
0
votes
1answer
322 views
How can I limit the size of attachment (file upload) in AngularJS?
I want the best way to upload files with loading image in AngularJS. At the same time i want to limit the size to 10MB.
Please give the best way to achieve this?
1
vote
0answers
82 views
angularjs ng-click not working inside the pop over directive
I added some buttons in the pop over template.
when the page finishes the first loading, click on the element on the page, shows the popover, click on those buttons, every one works fine. But when ...
1
vote
0answers
234 views
$setPristine() does not work properly if form control has invalid data
I am trying to reset form using $setPristine().
$scope.resetDataEntryForm = function() {
$scope.dataEntryForm.$setPristine();
$scope.pr = {};
};
It works fine if all the input controls in ...
1
vote
0answers
270 views
AngularJS ng-repeat not working with DatePicker controller
I can't seem to get the inlined calendar button associated with the DatePicker to work using ng-repeat on two DatePickers. They both work when I instantiate the DatePickers separately, but I wanted ...
1
vote
0answers
139 views
Layouts in angular
I am trying to develop a simple directive which can take a option of layout configuration.
Lets say i want to render something like this on the page
I want to render this 4 co-ordinates in one ...
1
vote
0answers
108 views
Manage complex UI with hiding/showing windows without losing scope/control
With angular js, How can I manage an complex view layout that allows the hiding and showing of windows (and so on.) I need to do so without loosing any state or scope while reopening windows if the ...
0
votes
0answers
16 views
AngularJS with spring ModelAndView Ajax
I am sending a request from below jsp
<body ng-controller="MyController">
<div data-role="page" class="container">
<%@ include file="header.jsp" %>
<div ...
0
votes
0answers
18 views
Updating “treedata” model array in angular-tree-control will not update the UI. Why?
I am using angular-tree-control of wix:
http://wix.github.io/angular-tree-control/
The main problem is to understand how to update the UI tree with new children nodes, not by clicking on the folder ...
0
votes
0answers
28 views
checkbox group directive showing this.ngModels is undefined error
I am using a checkbox group directive and here is the example: http://jsfiddle.net/Alien_time/pWQWG/3/
This checkboxGroup is used to add a ng-required condition so atleast 1 (or the number specified) ...
0
votes
0answers
104 views
$scope.object is undefined angularjs
Can you please assist in finding why $Scope.notify is undefined, infact the other function is working totally fine.
services.js [ postmain and allresults are working fine but not notifyadd??]
...
0
votes
0answers
82 views
angularJS watching values of an object list
I have a List containing objects in my angular js project. Each object of the list contains a name and a value. This value is bound to a text field. The list is displayed on a grid and when ever the ...
0
votes
0answers
65 views
In template of the directive i had added the click event which was handling in the link .But the issue is that the function is calling two times
this is my directive .IN this i had added the ng-click for the li with the display of the item name but the function is calling for two times .Any one can you please explain it was happening .below ...
0
votes
0answers
78 views
In angular, how can I change the view after certain seconds?
I have my current view as so:
<div class="television-container">
<div class="screen" ng-controller="TelevisionScreenController" ng-include = "currentChannel"></div>
<div ...
0
votes
0answers
536 views
Angularjs, clear $location history/cache
Is there a way to clear the history of Angularjs partials? I am currently developing some angularjs UI and I found that when I click back button on browser/device, it will go back to previous page, ...
0
votes
0answers
246 views
Custom Directive ,isolated scope and form validation
I need to create the following component
<input type="text" bp /><button><i class="icon-search"></i></button>
i have defined the form and form validation for it
...
0
votes
0answers
152 views
Call method on Controller after dialog closes
I am trying to open a dialog where user can enter a name and then call a method on controller passing the result from the dialog.
class MyController {
constructor(public $scope, public $dialog) ...