Tagged Questions
0
votes
1answer
24 views
AngulaJs ui-router. Protractor test failing
I'm creating a SPA using AngularJs and the ui-router from Angular-UI. Now I'm trying to create the authentication logic.
$rootScope.$on("$stateChangeStart", function (event, toState) {
...
0
votes
3answers
22 views
Multiple view for Single Router in angularjs
I have a common HTML where the header got to change after login.
<div class="masthead clearfix">
<div class="inner">
<h3 class="masthead-brand"></h3>
...
0
votes
0answers
17 views
How to sort nggrid without losing filtering?
function primaryFilter(entry) {
if ($scope.selectedItem && $scope.selectedItem.length > 0) {
if (entry.indexOf($scope.selectedItem) < 0) {
return false;
}
...
0
votes
1answer
12 views
Angularjs drag and drop who supports nested drop elements
I am using this plugin of angularJS- http://ganarajpr.github.io/angular-dragdrop/ and wants to achieve something like this-
http://jsfiddle.net/J7azG/40/
(similar to "greedy" feature in jquery ui ...
1
vote
1answer
32 views
Angular ng-repeat error
So my HTML is:
<div class="checkbox" ng-repeat="test in tests">
<a ui-sref="test{{id: test._id}}"><pre>{{test._id}}</pre></a>
</div>
My router config in ...
0
votes
1answer
22 views
UI-router interfers with $httpbackend unit test, angular js
This is a controller with a submit function:
$scope.submit = function(){
$http.post('/api/project', $scope.project)
.success(function(data, status){
$modalInstance.dismiss(true);
...
2
votes
3answers
40 views
How to call controller function from directive?
how to call controller function from directive? or howto access directive ng-model from controller?
eg. I use angular ui bootstrap time component and when time change I need to notify calling function ...
0
votes
0answers
12 views
angularjs way of @mention implementation
The question is brief, what's the best way of implementing twitter @mention alike functionality?
I have found one close solution: angular ui typehead
But I think it is not the idea one to implement ...
0
votes
1answer
16 views
Angular ui router match any route get all query parameters
With angular ui router I simply want to match any url and get all query parameters from that url, how do I do this?
Say I navigate to this url: ?name=Julian&lastName=Krispel
I expect the router ...
0
votes
1answer
24 views
Add an ID to datepicker of angular ui bootstrap
here is my code after each dateHolder div a date picker is generated.. but want an ID on them
<div class="col-xs-12 tn-dateContainers" ng-controller="DatepickerDemoCtrl">
...
0
votes
2answers
24 views
create a dynamic template and binding the content angular
following these great article link i have write my own directive to dinamically create a template for a window that have to be characterized by the nature of the data that will have to send, to be ...
2
votes
1answer
22 views
Bug timezone in the datepicker of AngularUI?
I use the AngularUI datepicker, it works great.
The only problem is when I select a day such as 2014/05/14, the value sent is Wed May 14 2014 00:00:00 GMT+0200 (CEST).
I sent the value in ajax ...
0
votes
1answer
22 views
bind values into modal's window
I have a code like this
HTML
<div ng-controller="modalCtrl">
<script type="text/ng-template" id="modal">
<div ng-repeat="add in addOn">
...
0
votes
0answers
13 views
Collapse items of Angular-NestedSortable / angular-ui-tree
we're trying Angular-NestedSortable https://github.com/subvertnormality/Angular-NestedSortable (the version 2 of angular-ui-tree doesn't look stable yet, looking at the tests).
We'd like to load the ...
0
votes
1answer
13 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
32 views
Show and Hide Alert Using AngularUI Directives for Bootstrap
Am a newbie in the field of web design.
I came across bootstrap and later angularjs. I find them quite impressive.
I noticed that bootstrap comes with its own jquery libraries and angularjs uses its ...
1
vote
1answer
24 views
angular-ui shift button keypress
I've managed to get enter keypress to work. But I can't seem to get the "shift" button keypress to work. Here is my code for enter:
<button
class="btn btn-primary order-input-add"
...
0
votes
1answer
57 views
angularjs ng-grid: parent child relations between the rows (hide/show rows)
I'm trying to implement rendering the ng-grid with predefined hidden rows and on some particular event I want to show them. I'm trying to simulate kind of parent-children relation between rows, but ...
0
votes
1answer
28 views
How to call collapseAll function on Angular UI tree?
I am using the angular-ui-tree directive to show a tree in my AngularJS application. However, I would now like to collapse the tree. The documenation states that there is a function called collapseAll ...
0
votes
0answers
26 views
Multiple select2 angularUI load remote data
I have an issue with loading remote data in multiple select2. My code is
var fetchGroups = function (queryParams) {
console.log(JSON.stringify(queryParams));
return ...
0
votes
0answers
26 views
get current event(s) from google calender
I'm writing an angular app that pulls data from a google calendar using angular-calendar (and in turn fullcalendar).
While I can render a calendar using angular-calendar quite happily I also need to ...
0
votes
1answer
26 views
AngularUI datepicker-popup - manually typed date and min/max dates
I have found an issue with validation of a manually typed date value that falls outside of the minDate or maxDate values when using the datepicker-popup.
This can be demonstrated with the datepicker ...
0
votes
1answer
28 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
32 views
How to update parameters without reloading the view?
I have been trying to do this. I want to change state because my parameters have changed, but nothing else about my state has changed, so I don't want to reload the view. It is expensive, and it ...
0
votes
0answers
23 views
Angularjs $state open link in new tab
I'm trying to implement an "open link in new tab" function using $state.go function. It would be awesome if there was smth like:
$state.go('routeHere', {
parameter1 : "parameter"
}, {
...
0
votes
1answer
34 views
angularjs tab key press prevent default
Hi I have a input field that calls the funciton add_plu() when the tab key is pressed down. Although it works, it moves to the next element of the page (default action for a tab key).
How do I ...
0
votes
1answer
19 views
Filter in ui-sref
I am trying to apply a filter on a parameter in my ui-sref reference.
<a ui-sref="item.show({ itemId: item.id, itemName: item.name | slugify })">
However, the above is not working. How to I ...
0
votes
2answers
50 views
Pass a promise into an Angular-UI state controller
Is it possible to pass a promise to a UI.Router $state from an outside controller (e.g. the controller that triggered the state)?
I know that $state.go() returns a promise; is it possible to ...
0
votes
1answer
88 views
angularjs datepicker not opening twice angular-ui version 0.11.0
I am trying to have 2 datepickers and I am using Angular UI version 0.11.0.
My HTML code
<span ng-if="periods.period == 10">
<input type="text" datepicker-popup="dd-MMMM-yyyy" ...
0
votes
2answers
22 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
1answer
51 views
Angularjs tab button
Hi! I was wondering how to use the tab button on the keyboard to call a function? Something like this:
<button
class="btn btn-primary order-input-add"
...
0
votes
0answers
23 views
Angular-UI Accordion + Datepicker?
i use Anguar-Ui Bootstrap http://angular-ui.github.io/bootstrap/
and i have implemented the "Accordion" from Angular UI and now i want add inside this Accordeon the Popup DatePicker from Angular UI.
...
0
votes
0answers
17 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
70 views
How to open download popup using Javascript/Jquery/Angular JS for the Excel Data return by Web Api?
I have following web api code which returns data into excel file.
I have requirement to export (open download popup) for this data using
JavaScript/Angular JS/ Jquery.
I want to add data into ...
0
votes
1answer
41 views
Angular js animation
I have simple demo and need help in animating it. Can you pls provide some help?
Here is demo.
Here is code:
var demoApp = angular.module('demoApp', []);
function ...
0
votes
0answers
20 views
D3.js SVG not clickable inside angular-ui tabs
I'm trying to use D3 inside of an angular-ui tab. Specifically, a clickable canvas where I can add and drag little black circles. If I put the svg element inside the tab, no clicks get registered. If ...
0
votes
2answers
63 views
Modal service in AngularJS that allows me to resize the size of the modal popup
I'm writing an AngularJS app. I need to open a particular modal popup that is big in size. Is there any AngularJS library out there that allows me to open a modal popup according to my specification ? ...
1
vote
1answer
46 views
Dynamically changing configuration settings ng-grid
What I'm trying to do is take the "showSelectionCheckbox:" setting in my gridOptions and change it from false to true and get my ng-grid to either show or hide the ng-grid default check box.
My code ...
0
votes
1answer
26 views
Angular UI Router, route resolve breaking refresh button
I am having an issue with Angular UI router. When I route the below state, it works completely fine. However, when I refresh the page, the resolve gets the data, it is injected into the controller, ...
0
votes
2answers
40 views
Stuck with Angular-UI TinyMce
I'm trying to use the Angular-UI TinyMCE directive in my Angular app.
What happens is, I query an endpoint, it returns an array of objects. I have a function that then converts that to a long string ...
2
votes
1answer
87 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" ...
0
votes
2answers
60 views
angular-bootstrap-ui modal size doesn't work
howto resize angular ui bootstrap modal on large size it looks that it doesn't work ? by the doc page it's enough to add size attribute ...
0
votes
1answer
23 views
How to bind a string variable to datepicker control instead of a date object?
I am using Angular UI datepicker in my project.
The control has an option "datepicker-popup" which allows me to set up te format I want to display the date in. However the date is bound to my model ...
0
votes
0answers
15 views
run a custom function on the click of the image insert button : Textangular
I need to override the default functionality of the image insert button of the textAngular.
I need to open a modal on the click of the same. How to do this?
0
votes
0answers
44 views
Ui router - nested view with modal box
I am trying to show a modal box based on the url using Angular ui.
I have three states - home, setting, and modal based on the setting state.
$stateProvider
.state('home',{
url:'/',
...
0
votes
2answers
24 views
Angular-ui Bootstrap Tabs - Is there a way to prevent tab selection?
I am using Angular-UI Bootstrap tabs and would like to prevent tab selection during the select event handler. I have tried setting the tab.active to false and setting another tab.active to true, but ...
2
votes
2answers
59 views
Angular UI tooltip in ng-repeat not closing
Please see the plunker below:
http://plnkr.co/edit/RPpjULZsSDnTFPKiafl2
Basically, the angular-ui tooltip remains when moving up / down to a position where ng-disabled is true. Any thoughts on how ...
0
votes
0answers
9 views
ngPluralize and Bootstrap tooltip
I would like to know how to use the ngPluralize directive along with the tooltip module from Bootstrap (the Angular UI fork)? The goal is to have a pluralized tooltip text...
Thanks by advance.
...
0
votes
3answers
61 views
Lay out HTML elements depending on the number of elements
The issue is that I have to lay out from 2-4 html video elements, but the number is dynamic, sometimes can be 2, 3, or 4 elements.
With 2 I will lay them out both side by side, 3 elements will be ...
-1
votes
1answer
38 views
Restrict user to enter/delete any alphabets
I am trying out the ACE Editor with AngularJS (using UI-Ace). I have a query.
Can I restrict the user
Not to enter any character except for a predefined char (say ;)
Not to delete any character ...