AngularJS (a.k.a. AngularJS 1) 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 applications are also frequently known as ...

learn more… | top users | synonyms (2)

-1
votes
0answers
5 views

Why does this angular app do nothing

This is very close to being right out of the example on W3Schools.com but doesn't seem to work and I have no idea why. <!DOCTYPE html> <html> <head> <script src="https://ajax....
0
votes
0answers
4 views

angular - Resolved data doesn't refresh in nested states components

I'm using angular 1.5 + ui-router + angular-resource and I try to write component based application. Here si my problem. I have one parent state, which is used for getting and updating data (data are ...
-1
votes
0answers
9 views

How to parse CSV/Excel file in Angular 2?

Is there any library in Angular 2 for Parsing xlsx file and return a json object. I checked js-xlsx library, I want the similar features but not sure how to use js-xlsx with angular 2, please help ...
0
votes
2answers
7 views

Displaying a var using AngularJS/HTML on the screen

I'm using MEAN Stack to construct my web application. (Mongo, Express, Angular, NodeJS) I have a server.js file, html file and a css file. My server.js generates a var number which I want to get ...
1
vote
1answer
8 views

How to make ng-model work in ng-if?

I need to hide and show the div on change of select box, which is already inside ng-if. Here is the code. Please help me. `<div class="col-sm-6"> <select name="" id="print-type" class="...
1
vote
1answer
18 views

How to add like and dislike functionality in my laravel website?

To be true i am new to laravel and I am following this tutorial to add like and dislike functionality in my website https://mydnic.be/post/simple-like-system-with-laravel-5 . here is my migration ...
0
votes
0answers
4 views

Angular circular slider master child

I am trying to implement an angular circular slider inside of another circular slider - kind of like a master-child structure. Can you please advise me on how to do that? The image below shows what I'...
0
votes
0answers
7 views

AngularJS, $sanitize() seems to escape accents

In my project, when the user types in a specific expression, it will be translated to a button in the view. The expression will be identified using a Regex. The code works fine. Later, I realized, ...
0
votes
0answers
7 views

inject scope into angular material modal

I'm trying to open a modal using angular material and inject the scope of the parent, where my data is. I am attempting to loosely follow the custom/advanced example here: https://material.angularjs....
0
votes
1answer
10 views

Scroll Moves to top when I push data to the top of the ngrepeat which is ordered on basis of dat

In angular js, I have used ng-repeat for the messages appearing top to bottom. In the bottom, the latest will be there. Old messages will appear when I will scroll up, On scroll reaches the top, API ...
0
votes
0answers
9 views

why ng-show in my html is not fetching the variable value defined inside angular controller $loaded() promise? [duplicate]

I have a element that I want to display it, when the entire data is arrived to my application controller from firebase database. Here is my controller code module.controller('blogs',function($...
2
votes
1answer
25 views

Angular js, weather api search city and using enter key

So the code allows me to show low and high temperature using the openweather api data. I can see the data perfectly, if i declare the value of the city in the input (ex: value ="houston") but i want ...
0
votes
0answers
13 views

npm installed in project how to use them

Created a project in web directory. Hello world example works. Installed node and grunt. Ran: npm install angular-ui-bootstrap --save-dev angular-ui-bootstrap is now in node_modules How do I ...
1
vote
0answers
9 views

how to use $resource, where to start

I am trying to understand $resource, but dont know where to start. I am trying to save data into db using REST API. This is my form: <ion-view title="Add New Device" ng-controller="addDevice"> ...
0
votes
0answers
21 views

Get first value in the first row in ng repeat

View Source: <div class="well tile single-tile"> <thread></thread> <table class="table table-hover table-striped table-clickable"> <tbody> <tr> ...
0
votes
1answer
6 views

Why not adding $scope can work?

In directive, why we do not add $scope as prefix in customer.name can work? I change to $scope.customer.name, it cannot work? Why? It suppose to have $scope, correct? Link (https://plnkr.co/edit/...
0
votes
1answer
9 views

Angular date filter converter, but date is always converted to UTC

My filter: .filter('emedicineDateTimeFormat', function ($filter) { return function (input) { if (input == null) { return ""; } var date = $filter('date')(new Date(input), 'dd.MM....
0
votes
1answer
17 views

Extremely simple AngularJs file select dialog

I just can't see how to get the value of a file name returned from an <input type="file" /> element. This fiddle looks extremely simple. It pops up a file select dialog, it even displays the ...
0
votes
0answers
7 views

Bootstrap Datetime Picker with Angular Button not working

Given the following code: http://jsfiddle.net/w3L2y4xj/ When clicking on the Calender Button (shown below) the model value for the date doesn't change properly. What I want to happen is when the ...
-3
votes
0answers
12 views

Angular Array in Array and Expected response to contain an array but got an object

I am using resource and I have set IsArray = true But I always get error Expected response to contain an array but got an object First object is converted to array but I actually need array in ...
0
votes
2answers
16 views

Show a div if ng-repeat with a ng-if returns null

I want to show a div with some message in it when the ng-repeat returns null. My ng-repeat is accompanied by an ng-if for simple filtering the json. Here is my HTML <ion-list> <...
0
votes
0answers
18 views

Angularjs regex case insensitive modifier not working

I am trying to use the below Email Address pattern in http://www.regular-expressions.info/email.html \A[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[...
0
votes
0answers
31 views

How to migrate a complex project from Angular 1.5 to 2?

I have a production site with realtime data. The site is based on jHipster (angular 1.5 + java). The site is state based. Websockets are used for asynchronous communication. Now, I want to migrate ...
-7
votes
3answers
19 views

jsfiddle does not work well with angularjs?

I have this simple snippet that works on my localhost but it doesn't on jsfiddle ? https://jsfiddle.net/vfbvsn7g/4/ <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/...
0
votes
0answers
6 views

Jasmine Post $resource

I am testing for the first time a post service with Jasmine. The service is as follows: var resourceUrl = g.appConfig.API_URL + '/ticket'; return $resource(resourceUrl, params, { .... '...
1
vote
1answer
17 views

Trying to append a REST url in Angular upon button click.

So I have the following factory/controller set up in an Ionic framework and it works fine. However, I want to provide three buttons that once clicked, change the locations - for example button one = ...
-4
votes
2answers
16 views

Could anyone suggest what technology to learn for hybrid mobile app development- Angular JS and Ionic/Angular and Ionic 2/Native Script, etc.? [on hold]

I have been doing web development since 6 months now.I wanted to learn hybrid mobile app development.But i am not able to decide what technology to go for out of so much that is available. So far i ...
0
votes
0answers
19 views

Directive's controller name match controller name?

In this example (http://plnkr.co/edit/MDhqlsS8CXmmpQr5hkYN?p=preview). In function test(), why not use controller: 'testCtrl'? I think controller: testCtrl is the name of Controller? But when I ...
0
votes
0answers
19 views

Controllers and Directives in Angular + RequireJS

In this plunk I have a sample code running Angular + Angular UI Router + RequireJS. There are two pages, each with a corresponding controller. If you click on View 1, you should see a page that ...
0
votes
0answers
16 views

Triggering event when value reaches a threshold in firebase [duplicate]

I have this firebase object, which is actually a simplifed version of what i actually have Tasks{ Task1:{ timestamp : //javascript time } Task2:{ timestamp : //javascript time } } What i ...
-1
votes
0answers
15 views

Angular 2 interpolation not working

I working on a simple Angular 2 application and for one of the components, interpolation doesn't seem to be working. I expect to see the page's title, but no text is shown. Below is the component in ...
-2
votes
0answers
14 views

Should I use both codeception and codeceptjs?

I'm new to unit testing. I'm trying to setup a WordPress project with Codeception for an easier learning environment. But I can't decide if I should use both codeception(http://codeception.com/for/...
0
votes
1answer
33 views

accessing global variables in angular scope

In http://www.w3schools.com/angular/tryit.asp?filename=try_ng_repeat_object instead of <div ng-app="" ng-init="names=[ {name:'Jani',country:'Norway'}, {name:'Hege',country:'Sweden'}, {...
0
votes
1answer
20 views

MEAN stack facebook login

I am trying to deploy an application that uses passport facebook strategy. I've been testing my app on localhost first and then tried to deploy it to AWS. Everything seemed working fine on my local ...
0
votes
1answer
18 views

Angular Js 405 DELETE Method Not Alowed

I have the following code in Angular DepartmentController.prototype.delete = function (id) { this.departmentResource.delete(id); }; The error is DELETE http://localhost:64956//api/departments ...
-2
votes
0answers
32 views

Cannot read property indexOf of undefined in Javascript with angular [on hold]

I am getting an error of , cannot read property indexOf of undefined anytime I execute the method having the below code. I'm unable to understand the issue. Any pointers will be appreciated! ...
1
vote
0answers
8 views

angular material layout-align space-between does not work in IE

I am using angular-material for my web app and below is my main template: <body> <div layout="column" layout-fill ng-controller="MainController"> <ng-include src="'/app/main/...
0
votes
0answers
5 views

How can I add icon to angular ui-select with selectize theme ?

How can I add a circle icon from font awesome into the left side of the selectize with ui-select angular and how can I change the arrow icon of selectize ? my code <ui-select search-enabled=...
-2
votes
0answers
22 views

How to write this input attribute and ng model in jquery while using append function

When I write text in first input it shows in the h2 tag of ng model "Taskname" but when I append and add other input, it does not show what I am writing, I think I am not writing the right jquery ...
1
vote
1answer
28 views

My accordion doesn't open with ng-repeat

My accordion in 1st iteration works with ng-repeat https://jsfiddle.net/cs3rpy83/6/ but when I use expression in onclick="myFunction('{{section.id}}')" it doesn't open anymore see https://jsfiddle....
2
votes
3answers
34 views

AngularJs data binding not working with ionic

I feel like I am missing something obvious with some input text in ionic. I am using angular-ui-router with this route: $stateProvider.state('findPersons', { url : '/findPersons', templateUrl :...
0
votes
0answers
20 views

Why does the installation of Angular-CLI hangs?

I am trying to install Angular-CLI but for some reason the installation seems to hang when I run the command in the command prompt. I was looking into this link for instructions: Angular-CLI on ...
0
votes
0answers
5 views

Background chartjs colouring not working for bar charts

Im struggling to get the colours working for my bar chart using angular-chart.js, versions below: Angular-charts (Version: 1.1.1) ChartJs (Version: 2.3.0) Angular v1.5.0-rc.2 The values for the ...
0
votes
1answer
21 views

AngularJS, how to use capturing groups in Regex

In my project, a user can enter a string, which is then translated in the view to a button. Here is an example, for what I wish to happen: User types in: argumentation-link_to(80) In the view, it ...
3
votes
4answers
56 views

AngularJS ng-repeat not refreshing on array update

I have a problem where the ng-repeat aren't updating the list when the array change. I'm using a JavaScript promise to compute a calculation to then return an object containing 2 arrays. These arrays ...
0
votes
0answers
19 views

How to use Java Applet in AngularJS client

I am trying to use my Cryptographic java class in the client side of application. I am trying to use Applet for that purpose. It depends only on java.security and java.io. Applet: package com.MVC....
0
votes
0answers
10 views

Integrating angularjs with grails 2.3

I have a monolith web application built with grails 2.3.5. I want to move my application to micro service architecture.For that I have decided to build front end using angularjs framework as a ...
1
vote
0answers
22 views

How to use a jQuery selector using an Id set dynamically by Angular?

I"m building a small app to test different possibilities for a demonstration. This app is a kind of personnal "Trip Advisor" for pubs in my area. For each pub, I store a name, a mark and its location. ...
0
votes
0answers
16 views

Automatic Change icon chrome extension

I use this code for the icon changes: Popup.html {{setMyIcon(vm.URL2)}} script $scope.setMyIcon=function(nameIcon){ chrome.browserAction.setIcon({ path: nameIcon }); } But the icon is ...
0
votes
1answer
23 views

why my ng-repeat doesn't work

I try to do this https://jsfiddle.net/u6qdfw5f/1/ using angularjs but it stays blank https://jsfiddle.net/cs3rpy83/5/ I can't see why. <title>The W3.CSS Example</title> <...