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
How can I have some checkboxes prechecked in a list of checkboxes with AngularJS and Firebase ?
I am making a mobile app with ionic and firebase and thus i am using AngularFire. I want to display the list of all the users below a search bar for my user to find new friends. When the user finds a ...
0
votes
0answers
5 views
add a button in a view and to call using (ng-click) function that is called buy another button in another view
i have two views in a single page application in one view there is a save button that save the data entered from the two view, i want to make it more reliable and ad that button into the secon view , ...
-1
votes
1answer
7 views
Performance AngularJS
I create a Logs with tabel. What options are a better way to increase performance?
I extract all rows from Database and I filter them from AngularJS.
When an user type a new filter, I send a HTTP ...
0
votes
0answers
5 views
Chaining AngularJS Resource calls within the transformResponse function
I want to chain 2 resource calls together but keep it invisible from the consuming application/controller.
For example: resource "Person" has multiple "Role" records, however I want to keep "Person" ...
0
votes
1answer
8 views
Duplicate in ng-repeat error
Hello for some reason it says as a error:
Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: mes in messagess, Duplicate ...
0
votes
1answer
10 views
ng-repeat values evaluated outside by ng-if
How do you access ng-repeat data for conditional settings outside the ng-repeat directive scope? For instance, I would like to show a div block outside ng-repeat when someone selects a radio button ...
2
votes
0answers
17 views
ng-submit doesn't work in form
I've reviewed every question concerning ng-submit, but I still can't get it to work. On submit, it should call the publish() function in the post controller. For the purposes of sharing it on SO, I ...
1
vote
0answers
9 views
Angular2 - HTTP 200 treated as error
I am trying to get Angular2 to work with my Asp.Net WebApi 2 server. I managed to handle some GET requests correctly, however this POST request behaves strangely. I receive an OK (200) response from ...
1
vote
1answer
22 views
Why can't I render this angularJS code?
This code is taken from the following tutorial using ZingChart.
http://www.zingchart.com/blog/2015/03/05/zingchart-angularjs/
My Code looks like the following:
//my-zingchart.html
<html ...
0
votes
0answers
15 views
Access to the variables in the template from other component
I need help with setting variables in the template from the other components.
For example:
AppComponent
@Component({
selector: 'app',
templateUrl: '/templates/layout',
directives: ...
0
votes
0answers
5 views
Angular-ui-grid Cannot assign to read only property 'id'
I'm hoping this is a simply fix that I'm just over-looking.
I just added Angular-ui-grid to my application and when I pass in an object to angular-ui-grid I am getting an error in the ui.grid.js ...
0
votes
0answers
11 views
Clean way of handling Ajax based pages
Traditionally I use to do following for my ajax based pages using jQuery.
Load the page from server response on first time
On certain user triggered event i make ajax call to my PHP script
PHP ...
0
votes
3answers
24 views
Is it a bad practice to use function call in ng-if/*ngIf? [duplicate]
Is it a bad practice to use the return value of a function call inside ng-if. Will it affect the digest cycle/performance?
1
vote
1answer
24 views
My localhost doesn't use the right path
I'm making a AngularJS app and I'm using a Slim API. I use my API to get data from my DB.
I was testing my app and I noticed something. I have my app in my localhost, but in a server to and they use ...
0
votes
2answers
5 views
unable to parse csv to json using Baby Parse
I am trying to use baby parse (branch off of Papa Parse) to take a csv file and parse the data to Json.
The csv file I am testing is very straight forward:
Column1,Column2,Column3
1,2,3
3,2,1
So ...
0
votes
0answers
3 views
Having set i18n on a AngularJS app, do I need to change the lang attribute dynamically?
I've set up i18n on my AngularJS app using angular-translate and everything works fine. I have also set:
<html lang="en" ng-app="app">
Do I also need to dynamically change my lang attribute ...
0
votes
0answers
39 views
Using array entry as href to website
I've made an array with several entries for a database (at now just two, but it will become a lot more). Just one of the entries (homepage) shall be a link to a homepage and i have some trouble ...
-1
votes
1answer
24 views
Why is scrolling inconsistent between Firefox, Safari and Chrome?
I'm working on this web page at http://helpir-staging.herokuapp.com. It isn't perfect but it scrolls fine on Safari. In Firefox it only scrolls using the arrow keys (no mouse scroll), and in Chrome I ...
0
votes
0answers
8 views
drag drop on table cell and tracking cell value
Using AngularJS
I am trying to implement drag and drag on table cells.
For example, I want to drop "Name" labels on table cells and want to track which name drop on which cells.
Table cells track by ...
0
votes
0answers
6 views
UI Bootstrap Modal Controller Not Applied
My modal renders correctly, but I can't attach a controller to it. The following code opens the modal correctly, but it does not apply the ModalInstanceCtrl to it:
var modalInstance = ...
0
votes
2answers
21 views
Angular JS elements not appearing
I wrote this code for an assignment but for some reason the Angular JS elements do not work. Instead nothing appears on the screen except for a small box containing the text 'Uthappizza'.
...
0
votes
2answers
16 views
Opening modal window in Bootstrap using AngularJS
I'm having a problem getting this to work. Pardon my mistakes, I'm really new in AngularJS. This is my code in main app.js:
angular.module('myApp', ['duScroll', 'emailModal']);
Then, I have this ...
0
votes
1answer
13 views
Angularjs function meaning
I am a beginner in programming. I would like to understand what the beginning of this angular function is doing line by line ?
function UserProfileService($http, ApiConfigService) {
var ...
0
votes
1answer
13 views
angularJS + ionic. Could not resolve state from
Hello i have diffrents states for 1 controller. that looks like this:
.state('new-orders', {
url: "/new-orders",
templateUrl: "views/new-orders.html",
controller: ...
1
vote
1answer
37 views
Need to call 4 functions on 1 click ignoring the params
Ok, I have this code which its been called once the app loads
$scope.postDashboardsData = function (dataType, dateFrom, dateTo) {
console.log('DATA', dataType, dateFrom, dateTo);
...
1
vote
1answer
13 views
How to filter multiple values (OR operation) in angularjs if filter is false
Have some trouble with multiple filters. One filter works good, if add second filter ng-repeat get filters with operator AND, but I need take second filter if first is FALSE.
function ...
2
votes
1answer
13 views
ng-reat and jade value not showing up
Hello im trying to pass documents to my jade file and then use AngularJS to display the documents in a np-repeat. However, the ng-repeat is not working. The message and title are showing up and the ...
0
votes
0answers
18 views
Best way to initialize JS Plugins
What is the best way to initialize JS plugins such as chosen-select etc..
Is there any system listener, where it would be possible to add? I am using Angular2.
1
vote
0answers
15 views
'jQuery draggable is not a function' in Angluar directive
I have created a custom directive in angular JS. Here is the code of the custom directive.
myApp.directive("dragMe", function() {
return {
restrict: 'E',
scope: {},
...
1
vote
0answers
10 views
Passport Facebook integration with angular-fullstack app not saving user session in angular-fullstack structure
I have an angular-fullstack app generated from here -
https://github.com/angular-fullstack/generator-angular-fullstack
I am using the same directory structure as angular-fullstack.
Now I am trying ...
2
votes
1answer
34 views
Angular Fire. Getting Child of Data
Its preety simple what im trying to do here. What im trying to do is get a child of the data. So in my case i want to get the value of the posts as described in my picture below:
EDIT:
I actually ...
1
vote
0answers
16 views
adding angularjs script to html file in webStorm
My app runs all fine as long as I have controllers.js as a sibling of app.js but when I move it to controllers folder and allow webStorm to do its magic by changing its reference from
script ...
0
votes
0answers
7 views
NW.js ability to detect computer lock, mouse activity, idle user
I'm at the early stages prototyping a NW.js application, basically a port of a desktop Outlook addin. Its an app based on the AngularJS flavor of the Metronic framework (themeforest).
My question - ...
0
votes
1answer
12 views
cannot use beforeEach with the inject function
This is from the karma.conf.js file:
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai'],
files: [
'bower_components/angular/angular.js',
...
0
votes
2answers
12 views
Getting error on Angular app: TypeError: Cannot read property 'then' of undefined
I am getting that error when I do I post from my controller
function postDashboardsData (dataType, dateFrom, dateTo) {
$scope[dataType + '_done'] = false;
Api.post('rotations/' + ...
1
vote
1answer
13 views
Ng-table, hide-columns feature, can't hide columns from controller manually
I have set up ng-table with checkbox buttons to hide columns and it works great.
here is an html
// switchers to hide/show columns
<div style="margin-bottom: 20px">
<label ...
0
votes
1answer
17 views
Routing in angularJS when project contains jQuery code as well as angularJS code
I have a project with one file one.html and another file two.html. File one.html works with jquery and is bound to root ("/") and two.html works with angularJS and the route is ...
2
votes
3answers
18 views
Angular 2 different between declare service in component and bootstrap process
What is the different between this:
bootstrap(AppComponent, [HeroService]);
And this:
@Component({
selector: 'test',
providers: [HeroService]
})
0
votes
2answers
11 views
Frameworks similar to angularjs for android apps?
AngularJS has some useful directives like ng-repeat that allow us to render repetitive elements easily, is there something that simplifies this on Android apps? It would be useful for creating ...
0
votes
0answers
20 views
Testing angularjs function with $event passed
How to test an function where $event is passed from View?
$scope.cricketTeam ={"firstName":"All",game:''};
<li ng-click="selectName(cricketTeam,$event)"><a>Click Me</a></li>
...
0
votes
1answer
11 views
Insert value into db.json with help of angular-resource
I have a json file named db.json which is like
{
"menu":[
{
"id":0,
"item":"item1"
},{
"id":1,
"item":"item2"
},{
"id":2,
"item":"item3"
}
],
"feedback":[]
}
I am using angular ...
0
votes
1answer
16 views
GET request gets triggered instead of template render with AngularJS, Rails and ngModal
I am using Rails, angular-rails-templates gem, Angular 1.4.8 and http://likeastore.github.io/ngDialog/.
My project structure keeps my template files in app/assets/javascripts/templates and my angular ...
0
votes
1answer
14 views
403 when trying to delete by id (AngularJS + Spring)
I am new in AngularJS + Spring. I am trying to delete the current user by his ID. I have the following codes
user.controller.js
(function() {
'use strict';
...
1
vote
0answers
25 views
two button on two different views calling the same function, angularjs
I have a SPA with two different views one for subjects and one for student,
in subject view I have a save button in app/views/subject/subject.html:
<button type="button" class="btn ...
0
votes
0answers
11 views
dynamically add columns in Angular-Kendo Grid
I want to add columns dynamically in a angular-kendo grid. I found a solution which require to destroy the grid every time a column is added. However I don't want to destroy the grid every time as I ...
0
votes
2answers
8 views
Upgrade Apache CORS no longer works
I just upgraded from Apache 2.2 -> 2.4 Took a little bit of work to get PHP and SSL running again, but now i have one problem i can't figure out... CORS
I have in my virtual host
Header set ...
-3
votes
0answers
14 views
CK Editor token insertion directly from editor by typing unique code/text
I have used CK editor token insertion and place holder plugins which works fine but my requirement is, if I type some unique code/ text like {{ then its should display a drop down with in editor and ...
0
votes
0answers
4 views
Identity Server 3 AngularJS with .Net Web API
We are planning to integrate Identity Server3 in SPA page application using AngularJS with .Net Web API.
1) Need to create identity token and oAuth token for the application and store identity token ...
2
votes
3answers
35 views
How can I limit rows showing in an ng-repeat?
I have an ng-repeat that looks like this:
<div ng-repeat="subject in subjects">
<div>{{ subject.name }}</div>
</div>
Is there some way that I can limit the display of ...
-1
votes
0answers
4 views
ERANAMES and ERAS in angular-locale
I have updated the Nuget packages in an ASP.NET 4.5 Angular project:
ui-bootstrap-tpls.js is changed from version 0.14.3 - 2015-10-23 (updated 2015-12-01) to 1.0.3 - 2016-01-11; Angular is 1.4.8 ...