Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.
0
votes
0answers
2 views
Ionic -> Scroll header together with content
I'm using ionic framework to develop an app.
I have an abstract state, with some html as "header" and an ion-nav-view. This is the template:
<div class="list">
<div class="item ...
0
votes
0answers
9 views
How to perform an ajax lookup within a ng-repeat
I have a ng-repeat of employees. One of the result fields returned is an employee number. How can I perform an ajax lookup and replace the number? I have tried using a filter but nothing ever gets ...
0
votes
0answers
3 views
Slick Slider inits when I come back to page after navigating away in AngularJS
When I refresh the page, it works fine. But when I navigate to another page and then come back to the page, it inits again causing slides to move eratically, extra navigation to be created, etc. It ...
0
votes
1answer
8 views
AngularJS ng-repeat doesn't work with callback data
I have a JavaScript function
function wantConversation(socket, callback) {
if(socket)
{
socket.emit('user.wantConversation');
}
socket.on('user.getConversation', ...
0
votes
2answers
13 views
How can I pass an item id to my controller for deletion method?
I have a view with set of items and delete button for each item
...<tr ng-repeat="course in vm.courses">
<td>{{ course.name }}</td>
<td>{{ course.url ...
0
votes
0answers
14 views
How to display title with ES6 angular 1.3 controller?
Just starting to get my head around the ES6 angular controller . I borrowed some code fr here: http://blog.thoughtram.io/angularjs/es6/2015/01/23/exploring-angular-1.3-using-es6.html.
I am just ...
0
votes
0answers
4 views
E2E test should fail, but the code passes the test
I created a test that should fail, but E2E tells that the code is ok. (I used this : npm test). Would you know how to make the test work?
The name should be "World" and the list has 3 entries, not 4 ...
0
votes
1answer
9 views
PHP - get params from AngularJS $http.get request
How does one retrieve the params passed through a $http.get request using PHP?
This is my controller:
app.controller('phonesCtrl', function ($scope, $http, $routeParams) {
var make = '{"make" : ...
0
votes
1answer
17 views
I need to figure out a way to display this on my. I have 2 columns, i Need to be able to display
This application uses stored procedures, and angular js, as well as jquery.
Basically I want to get my Category Name to display in my HTML. Currently I can only Display the Category ID. I am using ...
0
votes
0answers
14 views
Angular star rating directive issue in Angular 1.4.7
I have a little problem with star-rating directive.
Here is star-rating directive code and it is working perfectly in Angular 1.3.16 version but NOT working in Angular 1.4.7 version.
Acutually, It ...
0
votes
1answer
18 views
How to best perform paging and sorting from multiple sources in JavaScript mashup
I am in the process of building an Angular application that is fetching data with similar schema from multiple sources. The actual fetching of the data and presenting it is simple enough. I build all ...
0
votes
0answers
6 views
Getting started with the ngComponentRouter
I am setting up the repo that I accessed on github regarding the new angular router.
https://github.com/brandonroberts/angularjs-component-router
The directions are very straightforward
Clone ...
0
votes
0answers
4 views
how to build a custom directive for a button-group with AngularJS (link button-group template)
Here is an interesting question:
I am trying to build a button-group custom directive, so that I would be able to use it as a template. At the moment I have the following (which is too specific and ...
1
vote
1answer
28 views
How to use toggle css classes on an element onclick?
Using angular typescript, not $scope. I seen a ton of examples for $scope or JQuery. I want to basically have a clickable ellipsis, that will remove the overflow and text-overflow properties of the ...
0
votes
1answer
16 views
Utilising $rootScope variables in directive template outside of ng-view
I am trying to apply a conditional class to a nav bar directive template which sits ABOVE ng-view.
This is the basic set up on the index.html:
<body ng-app="myApp">
...