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
2answers
15 views
Angular Nested ng-repeat. Compare Two Lists. Display if found / not found
I currently have two lists which are being compared. One displays a list of colors and the other is a list of names that have chosen a specific color. This is simple to display. An example fiddle can ...
0
votes
0answers
2 views
Working with Angular WebApp with HTML5 mode into Wordpress Blog
I'm working in a large project AngularJs with WordPress Blog.
In this moment, our routes look like this:
http://test.com/platform/#!/login
http://test.com/platform/#!/register
And, I need to ...
0
votes
0answers
2 views
Angular ngRepeat Not Updating After State Change
Here is my issue, I have an angular app which displays users using $scope.users and <tr ng-repeat="user in users" >. I use a sort service I built to manage how the users are sorted. The ...
0
votes
0answers
5 views
How can I share an Angular 2 component between multiple Angular 2 projects?
Ideally, I'd like to create a stand-alone Angular 2 component (with tests) and then re-use it between two or three different Angular 2 sites. What are the good ways to achieve this?
And a bonus ...
0
votes
2answers
17 views
Angular filter ul based on jQuery appended li
So I'm quite new to angular but for my project I'm using both angular and jQuery.
I am currently making an ajax api call that loops through all responses and appends an <li> to populate a ...
0
votes
0answers
7 views
Keeping dependent models representing time in sync
I'm building a angular module, where the user can enter work times. These are the models I need (I'm using momentjs to handle formatting):
start datetime
end datetime
intermission start datetime
...
-1
votes
1answer
13 views
Shopping Cart Missing w/AngularJS
Let me start off by saying that I don't have any experience with AngularJS and very little with jQuery so I've been running around in circles trying to solve this issue.
The shopping cart button on ...
0
votes
1answer
5 views
Updating DOM according to Firebase Object
I want to update my DOM element everytime the value on the Firebase changes. I've seen that Angularfire handles three-way data binding, but from what I understood it only works if you take elements ...
0
votes
0answers
5 views
WebStorm: Angular directive - restrict parameter calculation
WebStorm doesn't recognize directive in HTML if directive parameters retrieve from a function.
WS is OK with this:
app.directive('myDir', function () {
return {
templateUrl: ...
0
votes
1answer
7 views
Pass additional data to $state.go in addition to URL params
I have an app page where I need to pass an id into the URL, plus I want to pass additional warning messages as an array, but currently it isn't working ($state.go() does nothing). Currently, for this ...
2
votes
2answers
40 views
JSON data not being displayed in angularjs ui-grid
I'm new to AngularJS and so far haven't had any problems until this one...
I am trying to display json data returned for my REST service call without any luck. I can hard-code in a data array into my ...
0
votes
3answers
24 views
AngularJS: Trigger function on filter change
I'm paginating an Angular table and want to display all the page numbers beneath the table.
I'm planning to create an array of the page numbers and then use ng-repeat to display them all:
HTML
...
0
votes
0answers
15 views
html grunt-minified angular form submit button not rendering (node)
When serving the source files, the following angular form renders correctly and the button submits correctly when pressed (i have reduced the size of the form to keep things concise)
<form ...
160
votes
8answers
126k views
How to call a method defined in an AngularJS directive?
I have a directive, here is the code :
.directive('map', function() {
return {
restrict: 'E',
replace: true,
template: '<div></div>',
link: ...
2
votes
6answers
37 views
Javascript using if(foo) exists to check if variable is set
I realize that this question is extremely similar to many others, but I must be missing some nuance with checking whether a variable is set or not. I have seen this in other developers code:
if(foo){
...
0
votes
4answers
34 views
Syntax error in AngularJS directive implementation
I'm trying to change an ng-click event by loading an item.list with the command inside my main app.js file. The item.list looks something like this:
$scope.list = [
{
...
-2
votes
0answers
21 views
Why is this animation not working with AngularJS?
I can't see what I'm doing wrong, $animate.enabled() returns true inside the controller after a $timeout. I tried fetching the promotions after a $timeout, but that didn't work either. No errors on ...
12
votes
3answers
6k views
how to create a nggrid custom footer
I want to enable footers for ng-grid but I want to completely customize it and override what ng-grid does by default.
Basically, I just want a 'Load more...' link at at the bottom of the grid that ...
0
votes
0answers
16 views
how to receive the response back from backend in angular
Please help!
I used springMVC and the angularJs to do my web site, and I meet a problem,
In my project, I want to add an box for a user, since the add function may be fail, so I want to return fail ...
2
votes
1answer
12 views
How to build a route that has a `#` in it?
How can you build a route with a hashtag (#) in it? I created the route
get 'authors/#/:id' => 'authors#show
But this generates the route
GET /authors/%23/:id(.:format)
So it has %23 where ...
1
vote
0answers
13 views
can not populate boostrap calendar using angularjs
I'm using the following libraries,
Angularjs
boostrap
datepair https://jonthornton.github.io/Datepair.js/
jQuery timepicker
I'm building a leave request application where employees can schedule ...
1
vote
1answer
23 views
Is it safe store a username inside a cookie?
I working on security and I 'm storing a session key inside a cookie. I will use it to check if the user is actually connected and if he didn't tried to change some info.
at first I think to just ...
0
votes
1answer
30 views
'Unknown provider' error while retrieving lazy-loaded controller
I want 'MyController2' to inherit 'MyController1', however, both controllers are lazyloaded using ocLazyLoad. According to Jussi Kosunen's answer to this question ...
-2
votes
2answers
27 views
How can i make Json using angularjs?
I have added nokia mobile model and submodels .for example user selected Lumia ,Lumia 735 TS and Lumia 510
var data = {
"model": 'Lumia',
"submodel":'Lumia 735','Lumia ...
0
votes
0answers
11 views
angularjs cors request: Access to restricted URI denied (only in Firefox)
I have a angularjs (1.4.7) frontend run with gulp that needs to make cors-requests to a Django RESTful API.
The backend server is setup to allow cors requests and logging in works fine in Chrome. ...
0
votes
0answers
9 views
Angular dropped item stay on dropped position
I'm using angular-dragdrop to move images from on div to another div. As each div has its own $scope list, when I drop an element from one to another list, the list which receives the item is updated. ...
0
votes
0answers
11 views
How to watch variable in a scope of controller which use several names in Angular
All:
I wonder if I use a controller in template with "as", but give it different alias in different places, I wonder how can I watch it?
Like:
app.controller("main", function(){
this.name = ...
0
votes
0answers
11 views
Rows from server not showing in Ag-grid?
So I'm using Ag-grid as a table technology to display data I retrieved from a server.
I send a query to the backend like so:
var query = QueryService.getQuery();
if (typeof ...
0
votes
0answers
8 views
JWT Token vs Default token in Asp.net Web Api
I want to build a web application with angularJs in the front and Asp.net web api in the back end , i did a lot of searching onhow to secure my backend server , I found that a lot of articles talk ...
0
votes
1answer
329 views
Migrating to Angular 2.0 and BindToController
So, I was reading about migrating to Angular 2.0 and trying to understand better ways in which directives/components could talk to each other.
I followed some of the guidelines here which suggest to ...
0
votes
1answer
15 views
How to add scroll bars to a dynamic table with multiple tbodys
I am facing a complicated table design. I need to create a table with possible multiple tbodys. just like this:
As you can see, each tbody is for a date. and I need to add as many row as I want by ...
0
votes
0answers
6 views
how to decide the active slide in angular-ui-bootstrap carousel
Here is the official example in the documentation about the angular-ui-bootsratp carousel.
But I could not replicate it in my own case, as the slide.active is not working.
...
0
votes
3answers
30 views
Why is my integer not being interpolated from my AngularJs Directive?
Summary:
I'm attempting to take an id from the $scope of a view's controller and pass it to my directive which then makes some more http calls using that id.
Here's my controller and directive js:
...
0
votes
1answer
14 views
Directives in object created during app lifetime doesn't work
I've created some basic directive. It works well if I use it with some objects in html file
<some-directive some-data="123"></some-directive>
But if I dynamically load this object to my ...
0
votes
1answer
42 views
AngularJS 1.4, bootstrap multi level Accordion sample
I want to build a menu something like as below but I am not finding an appropriate sample utilising AngularJS 1.4, bootstrap & accordion.
Accordion is a must. Please advise.
menu1
menu2
...
3
votes
2answers
80 views
loop infowindow with marker using ng-map
so if I loop my markers with info-window, info-window show all info about all markers,no separately.I tried also use filter and filtered loop in info-window but not worked..
And sorry for my english ...
1
vote
1answer
9 views
error_type“:”OAuthAccessTokenException“,”code":400,.. (instagram)
I am accessing the instagram API to display content from a specific account, however I get this error:
/**/ ...
1
vote
1answer
416 views
Dynamic Routing and Displaying Response as HTML
I've put together a quick example of my application -- took me a while to figure out dynamic routing via ajax. I return JSON from a server script controller that contains my HTML that i want to ...
1
vote
3answers
25 views
AngularJS: Executing a function after timeout ends
I have this angularJS app which has a countdown timer. I want to execute a function after it becomes zero. It currently goes into negative after it reaches 0. How to achieve this?
Angular Code:
...
0
votes
0answers
10 views
AngularJS $location in Html5 mode - when does browser history modification take place?
So suppose I my url says: www.example.com and I have a statement like:
$location.search('a', 'b').search('c', 'd');
$location.search('a', 'b');
and my app is in H5ml5 mode. What will the browser ...
0
votes
1answer
29 views
Ionic 2, Using Angular 2 Pipe breaks on iOS—“Can't find variable: Intl”
Experiencing the same problem with the date, percent, and currency pipes when using them in a template—
For example, I'm using a simple percent pipe: {{ .0237| percent:'1.2-2' }}
It works when ...
3
votes
2answers
2k views
Nested Views inside a modal not showing up. (ui-router and ui-bootstrap)
I'm having trouble creating a modal that responds to the application state.
From angular ui-router wiki I saw how to achieve my goal but my code is not working and I'm not figuring out why for the ...
0
votes
0answers
6 views
Difference between Angular Translate's useSanitizeValueStrategy('sanitize') vs. useSanitizeValueStrategy('sanitizeParameters')
I am using Angular Translate for localization and I'm a little unclear on the differences between the 'sanitize' and 'sanitizeParameters' strategies for escaping. I've already checked out the docs but ...
0
votes
1answer
116 views
Chrome browser doesn't show up when protractor starts testing
I'm wondering why my Chrome browser doesn't show when I start testing my angularjs app with protractor. It does execute the test though. I can see the output on my console.
However, if I change the ...
0
votes
0answers
4 views
Add package routes into main app routes with Express
im writing my own MEAN stack. I want to structure it in a horizontal architecture similar to how mean.io does theirs. Each package has its own server and public folder with its own routes.
I have a ...
0
votes
1answer
18 views
How to inject $rootScope into a service?
how to inject a $rootScope into the factory definition for the following code (so the file can be minified):
(function() {
var signalRService = function($rootScope) {
// ...
};
...
0
votes
2answers
19 views
AngularJS Ng-repeat, create dynamic dom with expressions
Here is The problem i am trying solve. I would like to create a JS script that uses angular to dynamically create div elements while adding an additional expression eg {{levelone}}.
Here is an an ...
0
votes
0answers
9 views
Updating ngModel of custom element from inside angular controller instead of Angular directive
I have a directive something like the following for a custom control
myApp.directive('myControl', function ($filter) {
return {
restrict: 'E',
scope: { ngModel: "=" },
...
0
votes
4answers
27 views
AngularJS NG-Repeat JSON
I apologize for this simple question. I've been scouring other questions and still can't get it to work.
I have a function returning some key/value pairs
function(data){
...
2
votes
2answers
28 views
Angular 2: How Should We Be Handling Dependency Injection with ES6/ES7?
I have been working on a custom component within Angular 2 as I attempt to learn the ropes and make the switch while staying with ES6/ES7 due to job constraints. Say I have a component defined such as ...