2
votes
0answers
10 views

What is best way to implement Dynamic URL Routing using ui-router

We have a large application and one of our requirement is dynamic views need to be shown to user from a links in Grid. We are using kendo grid to display data. e.g. clicking on customer name should ...
1
vote
0answers
6 views

how to pass id tourl while working with ui-router in angularjs?

How to pass id to url when working with ui-router and get detail data for that id on another page? can anyone help please? app.js .state("app.foo.bar", { url: "/foo/:listid", ...
0
votes
1answer
17 views

Filter in Angular.js by checking against a scope variable

I'm trying to get a certain object out of an array of objects, that meets a certain criteria. The id of the object should equal the scope variable $scope.lobbyid. My current approach below does not ...
1
vote
2answers
28 views

Increase value by 1 till mouse is release using angular mouse events

I have a td span which displays some numeric value and i have 2 icons (up/down arrow) shown above and below the span. Clicking on the up arrow increases the value by 1 till 99 and clicking on down ...
0
votes
2answers
20 views

Syncing data between controllers through a service

From this stackoverflow question, my understanding is that I should be using services to pass data between controllers. However, as seen in my example JSFiddle, I am having trouble listening to ...
2
votes
0answers
24 views

Is there a better way to toggle in and out of edit mode in ng-grid?

So far I've only been able to change the edit mode in ng-grid by using separate templates and displaying the correct template based on some user input. Example: Plunker (re-size a column and then ...
1
vote
2answers
51 views

Is there an easy way to make Javascript apps SEO friendly? [on hold]

I've been looking at using a new workflow process for web development. Yemoan, Grunt, and Bower with AngularJS seems like a great solution for front-end development. The only downside is that the SEO ...
0
votes
2answers
25 views

Filtering data from callback function

When using AngularJS, I keep running into the problem of how to deal with the asynchronous behaviour and callback functions. In the below, how can I modify PostsService.getPostBySlug to return the ...
0
votes
0answers
6 views

Mock $Window : Controller No longer defined

I currently running test on a controller called "MessageController" Everything is working great but i now need to mock $window so i try to change my module with this: mock = { location : 'val', ...
0
votes
1answer
19 views

how to launch an angular JS project outside of IDE [on hold]

So I have to demonstrate the client that I have been developing using WebStorm and I want to run it on outside of the IDE. So how do I launch this client? I just load the index.html in a browser and ...
0
votes
0answers
17 views

How to create a scrollfix on both ends?

We have finished a product search (via filtering) using angular, It uses an infinite scroll. It looks great but as the users scrolls down the filter panel eventually leaves the screen. To fix this, we ...
0
votes
0answers
15 views

Angular ui router unit testing (states to urls)

I'm having some trouble unit testing the router in my application, which is built on the Angular ui router. What I want to test is whether state transitions change the URL appropriately (there will be ...
1
vote
0answers
28 views

ng-click not working in div when dynamically appending

I already tried using $compile, but the ng-click inside my div is not working: var newlist = angular.element($compile("<li ng-click='SelectSkillSet(" + $scope.SelectedSkills[x].skill + ...
0
votes
0answers
10 views

JsDoc and AngualrJS - commenting $scope variables

I am using Netbeans to develop a AngularJS application, and I have some code that looks like this: /** * * @param {Object} $scope */ app.controller('Foo', function Foo($scope) { /** * ...
1
vote
2answers
14 views

AngularJS Directive Not Contained In Parent Element

Im trying to create a basic directive that puts an image on the page. The image is contained in a tag that may or may not be shown depending on a ng-show value. so, something like <p ...
0
votes
1answer
20 views

Nested directives are not rendering

I have a formatting directive using MomentJS that works fine on it's own. It doesn't try to maintain bindings but is only meant to spit out a formatted date. When I nest it inside of another ...
0
votes
0answers
22 views

Control.Layer collapse option for overlay layers with leaflet directive

Does anyone knows how to set the collapsed control.layers options for a group of base and overlay Layers added with leaflet directive? In my scenario, the control.layer should be always expanded. I ...
0
votes
1answer
32 views

Force page content to be 100% of view port

I just can't get it right! The content section should expand to 100% of the view port (minus the header/footer)! If the content is small I like to see the header at the top, the footer at the bottom ...
0
votes
1answer
24 views

Paginating an AngularJS blog

I'm trying to paginate my blogroll using AngularJS and the MEAN Stack. I have my Articles (blog posts) controller set up, and I've list.html to display everything. I can either get all the blogs to ...
0
votes
3answers
24 views

AngularJS — Resources and using them before the fullfilled.

I am having a big issue with Resources. I created a mod to hold the resource, I have to use the same data in many different locations almost at the same time. one bigest is to populate a select ...
1
vote
2answers
55 views

Angular.js Get rid of # in url

I am looking over the tutorial for Angular, and I am trying to get rid of the hash that is in the URL. I have experimented with setting html5 mode to true. However it does not seem to be routing ...
0
votes
0answers
22 views

Pass response headers from ngResource to controller

I have the following resource: factory('User', function($resource) { return $resource(apiURL + 'user/:userId', {}, { query: { method: 'GET', isArray: true, ...
0
votes
0answers
13 views

Fastclick.js integration with AngularJS

I'm building a Cordova application and click response times are slow. I found the angular-touch plugin for Angular (which, while designed for Angular 1.2.0, looks like it would likely work with older ...
0
votes
2answers
25 views

Restangular: impossible to post complex json parameters?

I would like to send complex json to a put route: Restangular.one('model3ds', model.uuid).put( api_key: "blabla" model3d: { is_public: true } ) But it does not seems possible ...
0
votes
1answer
21 views

Assigning a controller from a directive angularjs 1.2

I'm switching from angularJS 1.0 to 1.2 and I'm having some trouble assigning a controller to a directive with a clean scope, without defining a controller in my html with ng-controller. consider ...
0
votes
1answer
22 views

avoid routing of hash-less urls with ng-route

Say, I am browsing localhost/index.html#/view1, and I have a link pointing to localhost/index.html . When I click it, angular process it through its ng-route module and it falls into my redirect ...
-1
votes
1answer
33 views

Conditional expression in Angular.js templates

I'm trying to build a monthly calendar using Angular.js, and I can't seem to find a way of outputting expressions when conditions are satisfied. <tr> <td ng-repeat="date in dates"> ...
0
votes
1answer
31 views

Redirection issues in angularjs

Hi I am new to angular js.. I have a couple of issues which i am getting while trying to implement a tv-guide website.I have implemented promise in my application.js file. This is the code for ...
0
votes
1answer
15 views

Cannot extend angularjs controller in typescript

I am trying to inherit an angularjs controller using Typescript's extends. But as soon as I extend the controller angularjs throws this error: Error: Argument 'GenericLookupCtrl' is not a ...
0
votes
0answers
13 views

Angular translate default language with Static Files Loader

Hello I am developing app on angular and I use angular translate plugin with static file loader. Everything works fine but I have question is there a way to set a defaul language? I know that you can ...
0
votes
0answers
15 views

ng-pattern validation is not working in safari

I am using ng-pattern="/^(?=.*\d).{6,20}$/" for validating . (Minimum 6 and maximum 20 characters. Must have at least one number) It is working in other browsers except Safari . I google it but ...
0
votes
1answer
29 views

Creating Versatile Reusable Modules in AngularJS

I'm starting to get the hang of Angular now as I build my first app, but there's something that I'm struggling to get my head around. I'd like to create a reusable table template that can show a set ...
0
votes
1answer
29 views

Use AngularJS just for routing purposes

I've just been assigned a website that was made entirely with jQuery. It load asynchronously a few pages, and want to be a SPA. Now the only thing is that the developer didn't think about URL in ...
0
votes
1answer
25 views

AngularJS ng-grid - Dynamically updating the columns and results

I am newbie in ng-grid. How do we dynamically update the columns and results inside the grid. I have created a http://plnkr.co/edit/CwUVIzSKVNCMTgpOW87f?p=preview Script var app = ...
-4
votes
2answers
54 views

Can I make a function inside another function and call that with Javascript?

I have the following code: modalOpen: function ($scope) { $scope.view = $scope.modal.action; $scope.modalForm.$setPristine(); $scope.view = ...
0
votes
2answers
35 views

Prohibit the sending of the form

On the page after clicking "submit" form is submitted. But I forbade controller ctrlPersonalData form submission (return false) Please help me cancel the sending of the form after clicking "submit"
0
votes
1answer
13 views

Angularjs Module factory service issue

i have written a simple factory service. here the link to the fiddle http://jsfiddle.net/#&togetherjs=caUQB0merH I am unable to determine why the fiddle is not working. Can any one point out the ...
0
votes
2answers
31 views

Why ng-class is called several times in directive of angular?

I don't know why it is called several times. <!doctype html> <html ng-app="HelloApp"> <body> <test-directive></test-directive> </body> </html> ...
0
votes
1answer
29 views

Applying jquery plugin to new item in angularJS ng-repeat

Hi I have a widget which uses angular for render and a jquery bootstrap plugin to toggle a checkbox. <div class="notification" ng-repeat="notification in notifications"> <textarea ...
1
vote
2answers
38 views

AngularJS data binding checkboxes to object if checked

I have a JSON object which I am repeating with ng-repeat, the keys are strings, and the values are an array. I am listing each of the values as a checkbox. I would like to create a second object which ...
1
vote
1answer
31 views

Why does ngModel.$setViewValue have no effect?

I have a directive like below. It's supposed to load a file from an <input type=file> and set it to an ng-model provided. It's also got some custom validation only incidental to my question. ...
0
votes
1answer
22 views

Viewing fixed header on mobile device

Hi my website has a fixed horizontal nav bar and I'm having problems scrolling it on a mobile device when I zoom in. I did research and the only way to fix this issue is to use javascript. I found a ...
0
votes
0answers
29 views

AngularJS Nested Ng-repeat Counter Decrementation

I am trying to decrement a counter within a nested AnguarJs ng-repeat. I know it is a problem of scope, because the increment in the outer ng-repeat works fine, but in the inner ng-repeat is where I ...
1
vote
2answers
29 views

Two way data binding between controller and external directive

My setup: Imagine a controller for a shopping cart: app.controller('CartCtrl', function ($scope) { $scope.data = [ { id:0, title:'article1' }, { ...
0
votes
0answers
12 views

Get protractor to evaluate an element's isolateScope

I have an e2e test that just began failing. It looks something like this: myPageInstance.myDirectiveWithIsolateScope.evaluate("myIsolateScopeProperty") .then(function(myIsolateScopeProperty) { ...
0
votes
0answers
31 views

How can I modify an array model in an Angular end-to-end test?

I've got an angular app which has a table defined in the controllers like so: $scope.rowHeaders = ["Revenues","Costs","Profit"]; $scope.data = [[100,230,300,400,500,600,700,800,900,1000,1100,1200], ...
0
votes
1answer
34 views

How to wait for state change in AngularJS?

Using Angular 1.2.3, I have a service like this: var itemService = function ($resource) { return $resource('/rest/item', {action: ''}, { query: {method: 'GET'} }); }; ...
0
votes
2answers
15 views

custom angular filter gives TypeError cannot call undefined, but variable is defined and works

I made the following Angular filter to make a word all uppercase: angular.module('module.name').filter('toUpperCase', function() { return function(input) { return ...
0
votes
3answers
35 views

Sorting based on upcoming birthday

I'm building a simple birthday reminder app where I get the names and birthdays in JSON and I need to display the names sorted based on whose birthday is coming next. My logical thought would be to ...
1
vote
1answer
18 views

Error: Failed to instantiate module restangular due to: '_' is undefined

When first using Restangular on a working website I got the following JavaScript error: Failed to instantiate module restangular due to: '_' is undefined What am I missing? What does it mean ...

15 30 50 per page