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) | angularjs jobs

0
votes
0answers
3 views

Drawing in NativeScript/Angular application?

Are there any way to draw, say, lines, boxes, curves (directly or indirectly) in NativeScript/Angular application?
-1
votes
0answers
10 views

image not clear or reset after form submit to page refresh without reloading

image show to tags and image not clear or reset to all filed in a form
-1
votes
0answers
13 views

content is moving up/down when clicking ng-show in angularJs

Actually, i have been using ng-show in angularJs for hide/show functions. But, when I'm clicking on hide/show button, the entire contents is going up/down. hide/show is working fine when the content ...
-1
votes
0answers
7 views

Display options in select tag according to data called

If the data in the option is 5 it should display in options from 1 to 5. Here is an example Codepen Total_rooms are 5. I want 1,2,3,4 upto 5 in my options. Similarly max_adult is 2. I want 1 to be ...
0
votes
0answers
5 views

Cannot retrieve file chunk from mLab after hosting MEAN app on heroku

I have an application built on MEAN stack and hosted on heroku servers. I use mLab for managing the database side of the application. The data which is uploaded to mLab can be retrieved successfully ...
0
votes
0answers
5 views

How to load gif image in ionic app - Android/IOS

Am facing a issue with ionic. here, how to load gif image in <image src="icon.gif"> in a html page. its working in browser but not in mobile or device. can any one help me.
0
votes
1answer
10 views

jasmine testing a mock service in an angular 1.5 controller

Given the following test. How do I ensure that the promise is resolved, and the data is provided. describe("component: FicaStatusComponent", function () { var fs; beforeEach(...
0
votes
1answer
23 views

reload page in angular js

Hi guys am a beginner in mean stack development I have tried to refresh the page after logout.I have tried location.reaload(); but it doesn't work tell me the possible code for page reload in this ...
0
votes
1answer
15 views

calling function within td element to set the text

I am trying to call a function within a element that is part of a ng-repeat. Any ideas how to get this to work? I have tried so many things and no joy. The issue is the cartperf.perf_desc binding. ...
0
votes
1answer
15 views

What is causing the model to null

Angular Service:- app.service('loginService', ['$http', function ($http) { this.userLogin = function (user) { console.log(user); //prints {'username': '[email protected]', 'password': 123'} $...
0
votes
0answers
8 views

mocha: using inject inside beforeEach throws Exception

I have written a test controller which return following object, {hello: 'a', world: 'b'}; testing it with mocha following way describe('Test suite', function(){ let controller; beforeEach(...
-1
votes
2answers
33 views

How to break these two words in two line

I have design this box with angular material. I can not break these two words in two line(up and down).i have included a image. Here i want 1349 and New Feedback in two line. I am new in angular ...
-1
votes
1answer
19 views

Angular modal service not displaying

I am trying to set up angular modal service on my web app, but whenever I click on my button it does not appear. What am I doing wrong? Builder View <div ng-controller="BuilderController as vm"&...
1
vote
2answers
16 views

How to use $scope in $http url

When I log the id it shows me the correct id. I want to pass this id in the second url and fetch data accordingly. Like when the id is 9 and when i put it like this url: &room_type=9&day=1 ...
0
votes
1answer
18 views

AngularJS and Webpack

I'm trying to use webpack to build my AngularJS application. There's a common way to define a new module that depends on angular-animate in AngularJS: var app = angular.module("myApp", ["angular-...
0
votes
0answers
18 views

AngularJS Empty Result in Second URL

Expected Result: Opens up Title and Comment in titleDetails.html when Title is clicked in index.html. Problem: URL changes to http://localhost:3000/titleDetails.html when Title is clicked. But ...
0
votes
0answers
10 views

Remember angular toggle state after page refresh without js cookies

I've got two sections that are being shown and hidden using angular. After filling few fields, I need to validate the data server-side, and refresh the page - then, div's with ng-show / ng-hide ...
0
votes
0answers
13 views

Referencing an element rendered in ng-repeat loop returns 0

I have a problem with referencing an element rendered in ng-repeat loop. My code is: <div class="cars-container" data-ng-repeat="car in cars"> <div data-ng-show="$index =...
0
votes
1answer
18 views

Angular 2: Update the iframe src when router url gets change

App has a top-bar with 3 dashboard buttons on it. Every link opens up a new dashboard on the page via iframe. app.component.html <md-toolbar class="toolbar"> <span>Dashboardds</span&...
0
votes
0answers
18 views

Display selected radio button from JSON in angularJS

I want the radio button to be selected depending on the given JSON format. { "autoselect": [ "fugiat" ], "component": "radio", "description": "necessitatibus accusantium ...
0
votes
1answer
14 views

Check for directive has an value in angularjs

I need to show text on the basis of the directive i.e. if directive has some value then prints it otherwise show or hide div. E.g <out name={{users}}></out> If above directive return ...
0
votes
1answer
12 views

How to use angular material circular progress bar

I am trying to use a progress bar when I am uploading a video, but the progress bar appears on load page and sty forever. <div ng-show="!$ctrl.setNewVideoRecord()"> <md-progress-circular ...
0
votes
1answer
16 views

Angular $http sends get instead of post

$http.post(main+'/api/getcard/', $.param({number: $scope.searchcard}), {headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'} }) .then(function (response) { ...
-1
votes
1answer
16 views

change value of input and submit angularjs

i need to create robot in page to do some work and i need to change value of year and month and submit when a put value manually everything work but when i use javascript like this document....
0
votes
0answers
12 views

Slim HttpBasicAuth with Angular JS 1.5

I have single page REST application and I'm trying to add there some really simple authorisation. Just login, no registration. I am using HTTP Basic Authentication middleware with simple PDO ...
0
votes
2answers
31 views

AngularJS access $scope variable outside of the then callback

I invoke a method from my Bootstrap Modal submit button as below; $scope.addProject = function() { $http.post('/cc-addProject' , $scope.project).then(function successCallback(response) { $...
1
vote
2answers
26 views

Why custom filter is not running in angular?

Below is my custom filter. app.filter('inputFilter', function () { return function (str) { var output; if (str != "" && str != null && isNaN(str)) { output = str.trim(...
0
votes
0answers
20 views

Owl Carousel not initializing when including jQuery in HTML Head

It seems that owl carousel is not initializing if jQuery is included in the HTML head section (including in body is working fine). In detail: The div-container with class owl-carousel has still ...
0
votes
3answers
21 views

Force custom filter to work in repeat

I need to use filter in my loop. Let's say that we have simple array with names: ['Thomas', 'Brian', 'Joana']. I want to view filtered set of names. It works as expected when I use Angular's filter: &...
0
votes
0answers
10 views

Adding side-menu in ionic framework

I am new to ionic. I am converting an existing angular app into mobile app using ionic framework. But, I can't add a side menu to this. How do I do that. Here's my code: <div class="wrap"> &...
0
votes
4answers
38 views

Consuming JSON Object in AngularJs

My Spring Rest Controller Endpoint is as below: @CrossOrigin @RequestMapping(value = "/getEverything", method=RequestMethod.GET) public @ResponseBody MyItems getEverything(){ return myService....
0
votes
1answer
20 views

ng-show and ng-hide on multiple anchor tags

I want to display {{x.description}} inside the p tags only when the Descriptions anchor tag is clicked and hide when the other links are clicked and I want to display the ul when Others anchor tag is ...
1
vote
0answers
12 views

angular material 2 button toggle by default selected

in angular material 2, How can I set default selected button in toggle group. It does toggle once I tap one, but both selected by default somehow. I tried as follows, but doesn't work. <md-...
0
votes
1answer
34 views

AngularJS $location directory

Main page URL: http://localhost:3000/ Current second page URL: http://localhost:3000/#/titleDetails.html Expected second page URL: http://localhost:3000/titleDetails.html Currently when I click on ...
0
votes
2answers
17 views

Trying to shorten check conditions using or in ng-if directive. Comparing series value with multiple times as there are many values to check in or

<img src="img/temp.png" class="img-responsive" ng-if="series === 'Temperature' || series === 'T' || series === 'Temperature-138828'"> I tried like this, but it din't work: <img src="img/...
0
votes
0answers
26 views

register controller dynamically in directives of angularjs

I have to develop a single page application with angular.I need to register controllers on demand in directives. I did this in app.config where i set my URL's but i could'nt do it in directives. I ...
-1
votes
2answers
24 views

how to print a value from function in angularjs

Have a look at the code in images below: HTML: JS: cartAmt = productDetail.discountedPrice++; this is not working ${{cart.cartAmt}} this value is not shown up
0
votes
1answer
16 views

$scope.$on('element') watchers are not being triggered after $scope.element is set

This is a controller where I am getting some data from firebase and updating my scope, then I want to do some more stuff once that scope is updated: .controller('loginCtrl', ['$scope','$firebaseAuth',...
-1
votes
0answers
14 views

angularjs typeahead with enter event

I want to display textbox with dropdown. when user enter text, it will call the function to access DB and returns list of users which match with entered text. that users list will be displayed in ...
0
votes
1answer
19 views

Passing POST data from ionic framework to CodeIgniter Rest API

From last two days i'm try to post the data from my Ionic app to CodeIgniter rest api using $http. But my post data goes empty. I refere some link. But failed to seolve. Below is my code. My ionic ...
1
vote
1answer
17 views

angular-ui-router Multiple Views

I'm new to use angular-ui-router, I has a index.html and javascript like this: var mainApp = angular.module('mainApp',['ui.router']); mainApp.config(['$stateProvider', '$urlRouterProvider','$...
0
votes
2answers
37 views

Angular: ng-options inserts an empty element

So, I've been looking around to understand why this happens. From what I understand after going through couple of other questions on Stackoverflow and other websites is that, this problem is caused ...
1
vote
2answers
21 views

angularjs modal service broadcast and on issue

I am using angular-modal-service library. My logic is : when the modal is open it runs a function from SomeService, and $rootScope.$broadcast from SomeService to modal controller that way I can send ...
0
votes
2answers
23 views

Why is $location.absUrl(), $location.$$url, $location.$$path blank in href?

Here is the code in concern: <div ng-app=""> https://www.facebook.com/sharer/sharer.php?u={{$location.absUrl()}} https://www.facebook.com/sharer/sharer.php?u={{$location.$$url}} https://www....
1
vote
1answer
20 views

using ng-class in angularjs table

i have 3 css class namely .green{ background-color:green } .yellow{ background-color:yellow } .red{ background-color:red } and i have a table which looks like this <div class="table-...
0
votes
2answers
16 views

Reverse binding in AngularJs

I have two input boxes. Whatever typed in first input box should show in second, it is easy. But, If I typed something in second input box and try to display in first it doesn't work. Here is code. ...
2
votes
1answer
17 views

AngularJS template function in directive giving error 'Template for directive must have exactly one root element'

I am working on an angular application. for a certain directive, I use the template function like this: template: function(element, attr) { return '<div class="myClass">/..some ...
1
vote
2answers
36 views

Angularjs search filter based on dropdown range

I have an angular dropdown problem. I want to show projects with ng-repeat with dropdown selected value and split them into range. can anybody help me please? jsfiddle : http://jsfiddle.net/...
0
votes
0answers
14 views

Make Rowspan in table tr ng-repeat based on object return from API

I searched so many hours on Google but did not find any related answer. All i found with nested object related article. But i need to make rowspan based on a column value from array. What i now have: ...
0
votes
1answer
17 views

using ng-init in dynamic dropdownlist angularjs

I am creating a web app using mvc5 with angularjs, i have a dynamic dropdownlist, i am fetching my data from my database, my dropdownlist look like the following, <select ng-model="mduser....