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. The ...

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

premium word in angular displayed incorrectly in the UI as premlum

I have a word named "Premium" but in the User Interface, it appears as "Premlum" I use html5 and angular, how to rectify this problem? My problem as shown above is, i turns to "l" (lower case L). I ...
0
votes
1answer
19 views

How to get the element before last?

In Protractor, there is the .first() and .last() methods available on ElementArrayFinder: var elements = element.all(by.css(".myclass")); elements.last(); elements.first(); But, how to get the ...
-1
votes
0answers
11 views

Minify angular using IIFE pattern

Hi i write my angular code using IIFE pattern, but when y try to minify, my app die, i think that issue can be fixed using ng-annotate, but not, ng-annotate let my code as the same original, here is ...
0
votes
0answers
8 views

angular app hosted on azure app service crashes on chrome only

I have a webapi/angular website hosted on same azure appservice. so /site/api has my authentication token and other apis. and /site/app has my angular app. Issue is, on our staging, which is not ...
2
votes
2answers
55 views

How can I return a called back function?

I using Angular's $http to get questions, which expects a promise in return, either success or error: Question.getQuestions().success(function (res) { ... }).error(function (err) {}); In my ...
0
votes
0answers
12 views

Better organize AngularJS model-service code

I'm trying to develop a "model" service to keep my shared data synchronized between my controllers. I ended up with this solution: myApp.factory('UserService', function() { return { data: { ...
0
votes
0answers
22 views

How to Query a URL on Server and Return all Files Within Directory

I am trying to query a url that is held on my server, which is /public/assets, and return a list of all pdf files in this directory. I am currently using ajax, but am open to other solutions with ...
0
votes
0answers
3 views

Angular handling OAuth refresh tokens

I added OAuth 2 to my front end Angular app and Laravel API. I am working on dealing with token expirations. I am using password grant without a refresh token. This article recommends a good way of ...
0
votes
0answers
13 views

Edit in Laravel + AngularJS

i'm building a complete crud using laravel + angularjs, but im with problems in "edit" part. Its a internal server error, so i dont know what it means and i need help :( sorry for bad english. the ...
-1
votes
1answer
25 views

Is it possible to put an entire form into ONE AngularJs directive?

I have seen many examples of people using a combination of HTML and directives to create an AngularJS form (like here), but I am trying to create a standalone widget, that has all of the HTML for the ...
0
votes
0answers
5 views

NormalizedCollection orderBy

I blocked for some days to retrieve data from Firebase in descending order and in relation to the connected user: Firebase : { "Chats": { "chats_1000": { "FriendChat": { ...
0
votes
0answers
3 views

How can I register languages with Angular-Translate at run-time rather than config?

Given a user who is registered with our application in a given market, there are market specific areas of the application that are not translated into all locales. For example, for the Canadian market ...
0
votes
1answer
18 views

assign userID as value and username as ng-model to a select tag

My question is probably easy, but I am having difficulties to solve it. I am developing an application using ASP.Net MVC and AngularJS. And I am using select tag to list users. I assigned to the ...
0
votes
0answers
17 views

Angular Factory - Altering Returned Data

I'm following along on the Angular JS Tutorial and I was wondering if there is an alternate approach to how I'm modifying it. Currently, I am returning data with a factory that is defined as such: ...
2
votes
2answers
26 views

How to save distinct values in an object in javascript?

I have a bunch of log data which is stored in a variable. Each log value contains a camera name and system ip. I want to create an object which has names as all the distinct system ip's and ...
0
votes
0answers
4 views

IONIC / AngularJS validation form not showing the errors

I use IONIC and I want to validate the form before submit but the error messages not showing. This is my code. <form ng-show='showLogin' name='myFormLogin' novalidate> <div ...
0
votes
2answers
21 views

Any way to call $q notify without causing $digest cycle?

I have an app that $digest cycle takes about 5ms, and I am using $q.defer with deferred.notify a lot inside my app. The issue is that every time deferred.notify is called, a digest cycle will be ...
-4
votes
1answer
15 views

Angular scope, controller, describe function and it function

couple questions while i was going through the tutorial that i cannot find the answer to. https://docs.angularjs.org/tutorial/step_02 1)in View and Template, how does {{phone}} bind to the ...
0
votes
1answer
16 views

How do you populate a dynamic variable in AngularJS

The following code gives me the error "Cannot read property PERSON1 of null". If I comment out the line where I try to assign the dynamic variable and uncomment the alert line it pops up alerts with ...
0
votes
0answers
10 views

AngularJS Components binding function ( call function from another controller)

Have problem with binding. Example: in one component view have attribute ng-click="$ctrl.onDelete" in this controller have binding option onDelete: '&' , and in another controller view have ...
0
votes
0answers
9 views

How do I load video.js with browserify?

I can't find any explicit directions for this, and when I require('video.js') in the app dependencies I get an error: Error: [$injector:modulerr] Failed to instantiate module function videojs(id, ...
-1
votes
0answers
10 views

How to avoid close bootbox window to callback without “return false;”?

I need to call callback method in bootbox for call another bootbox but without close the first one. I hope that somebody can help me. Thank you
0
votes
0answers
7 views

angular ui tabs active based on ui-router state

I'm getting this error: Error: [$compile:nonassign] Expression '$state.current.name==='admin.adminDetails'' used with directive 'tab' is non-assignable! Trying to activate tabs based off of url: ...
0
votes
0answers
9 views

Cannot access DOM inside ngRepeat inside custom directive

In the following example (http://jsfiddle.net/akanieski/t4chbuwq/1/) I have a directive that has an ngRepeat inside it... during the link stage I cannot access html inside the ngRepeat. Only thing ...
-1
votes
0answers
18 views

How to prevent navigation from one state to another state in angularjs?

I need to intercept when user clicks on browser back button from a specific view to navigate it to home view rather than the default back page. Any ideas on how to do this? I have states defined as ...
0
votes
1answer
34 views

Angular: how can I order ng-repeat by array order?

Problem Is there a way to instruct Angular to order an ng-repeat by the repeat's source data order? If not, how else can I use ng-repeat's orderBy within the context of a container directive? ...
1
vote
1answer
21 views

How to hide a custom directive

I am trying to implement tabs with custom directives. This is the code for tabs: <section ng-controller="tabController as tab"> <ul class="nav nav-pills"> <li ...
0
votes
1answer
22 views

how to send request from action form to angularjs

im using this code to upload file to my REST API, and it works fine , this is my form : <form action="webresources/documents/upload" method="post" enctype="multipart/form-data"> ...
0
votes
0answers
23 views

Refresh Angular ui-grid

I already broke my mind and pretty close to destroy my pc... I cannot force to refresh my grid at all. The functions is firing but I don't see any changes on the page. I've tried a lot of ways. This ...
0
votes
1answer
16 views

How to feed a subtemplate with data in AngularJS?

I've got 4 types of a subtemplate that can appear in my parent template. Let's say these are different input types in a form. I get some data from the server and want to feed these templates (select ...
0
votes
0answers
4 views

How to shift 1st column to the last in a Kendo UI hierarchical grid.

I am using a kendo UI hierarchical grid, where I have to display the expand icon for each row to the end instead of in a 1st column. Is there a setting available which can be set to true to achieve ...
0
votes
0answers
17 views

AngularJS: Current tab lost focus (background color) after I clicked somewhere else

I have 2 tabs: <div class="container-fluid" ng-disabled="isLoading"> <!--Tab Menu Start --> <tabset> <tab heading="Accounts" href="#portlet_tab1" ...
-3
votes
2answers
28 views

Showing an image or text for few seconds using javascript [on hold]

I am building a web app: front-end in Angular and back-end in Rails. When users are done with filling out the application, they need to press "save" button to save the data. Right now, when the user ...
1
vote
1answer
17 views

Argument (Controller) is not a function, got undefined

After googling for an hour and searching in Stackoverflow I cannot get the answer. I am new to angular and this is just a practice but i cannot make it work. I get this error in the console: ...
0
votes
2answers
13 views

setup 404 page using $routeProvider in angular js

Working on single page application everything is working fine but getting stuck when want to set 404 page when :username not found or any unexpected url will load in browser please check my code below ...
0
votes
0answers
6 views

Rendering HighCharts in AngularJS from Json Object

Learning AngularJS and HighCharts. Plunker link I would like to understand how I can get the data from a JSON object and dynamically update the values on the x-axis and the bar chart value. The ...
0
votes
1answer
46 views

How to use function outside $scope ( error: function isn't defined)

I have a rzslider which takes in true or false for disabled. I want disable to be true based on a function. So I want to make it disabled:checkDupsName() $scope.slider = { value: 1, ...
-1
votes
2answers
13 views

Send email with Mailgun in angular

This is my code: function sendEmail(){ return $http.post('https://api.mailgun.net/v3/<DOMAIN>/messages', { from: "hello@<DOMAIN>", to: '[email protected]', ...
2
votes
0answers
26 views

Browserify + AngularJS index.js IIFE params undefined

I have the following index.js for an angular app. Even though the var statements are executed first, and all variables are successfully logged to the console before the IIFE is executed, they are ...
1
vote
1answer
57 views

element.find('li') doesn't match any result

I have an angularJS directive that change li style properties when toState match the ui-sref value. For any reason the element.find('li') brings me an empty result. Here bellow I paste my code: ...
0
votes
1answer
23 views

AngularJS - init() function, create an array of different objects

I need to create an array based in the following features: Every time the ng-repeat directive list an object the init() function automatically sends these parameter to the controller in order to get ...
0
votes
0answers
19 views

Typescript + C# + Angular - Response does not match configured parameter

I've inherited an app from a former developer and I have pretty much exhausted all of my debugging abilities. This app is my first exposure to Typescript, so I'm feeling a little lost there as well. I ...
0
votes
1answer
20 views

How to create unit test for http request in my case

I am trying to create a unit test for a random generate url. My item Controller JS init() function init(){ var results = itemService.request(); other codes.. } My itemService js ...
0
votes
0answers
10 views

Angular UI Grid Validation

Angular UI Grid is still in Alpha. Does anyone have a good pattern to handle validation for errors that are scrolled out of visability? Plunker: http://plnkr.co/edit/V0ARGPPQrMLIQnKGT8UT?p=preview ...
0
votes
1answer
11 views

Grunt serve: “Cannot GET <url>” on URL with variables

I have an URL in the format http://url.com/reset?email=foo%40bar.com which works fine on production, but I'm not able to get it to work locally with grunt. There are no errors in the console, but just ...
0
votes
0answers
12 views

Clear input with protractor non-angular syntax

I am testing a non-angular (javascript and HTML) site with protractor and selenium. I want to clear the input. I have used below commands browser.driver.findElement(by.id('txtname')).clear(); ...