0
votes
0answers
5 views

AngularJS Input Auto Focus

currently I'm learning the AngularJS. I have a problem in autofocusing an element. My idea is: If a span element is clicked, it is hid and it triggers the input element to appear (with autofocus). ...
0
votes
0answers
7 views

I can't recive title data from form with AngularJS

I'm doing a form with angularJS and with the plugin nervgh/angular-file-upload to receive Title data, Text data and multiple file. The multiple file works well but the problem is that I can't receive ...
0
votes
0answers
12 views

checkbox style is missing when form is submitted and angular scope variable is refreshed

I have an application which uses charisma template 1.x, i have now used angular js within the template. The application is working fine but the problem is that i am having a Tab Grid within which ...
0
votes
1answer
11 views

ng-change not firing when empty select option is removed

I have a select list in angluarJs, which I have removed the default empty value from (using the answer from this question Why does angularjs include an empty option in select). Now, when I try and ...
0
votes
0answers
10 views

Why doesn't Isotope work when I use templates?

I started a little project for practicing Javascript, Angular and Isotope. It all works fine if I only have one html-file and one js-file. Here you can see: http://jsfiddle.net/tjojo99/Lmch3taL/. So ...
0
votes
2answers
9 views

Retrieve selected option text with angular, not only the value that contains the id

I was wondering what is the best way of retrieving the text that's between <option> and </option>, since the model assigned to the <select> only returns the id. <select ...
0
votes
0answers
21 views

Add new inputs to form after HTTP request

I want to add some more fields in my form made by AngularJS, I can't put my complete form, because it's too long, but this is my codes: JS: this.selectService = function( sid ) { ...
0
votes
1answer
20 views

Dynamically node generation function

var v = [ { "message": { "code": "S200", "message": "Success" }, "data": { "car": [ { "id": 1, ...
0
votes
0answers
20 views

Load javascript from partial view with angular js

I am using angularJs + asp.net MVC with angular routing, when I load the partial view form angularJs, the <script> tag in the partial view is not working. my code is as below: @using ...
0
votes
0answers
19 views

How can I pass the json object property in header using angularJs?

I have json property which is store in localstorage and that property I have to pass in the service header. I don't have any idea how can I do this. Here is my code: Login Controller code: ...
0
votes
1answer
16 views

AngularJS: DOM manipulation once view is fully loaded

Apologies for the long post - I hope it doesn't put too many people off. What I have is working, but I'm just not sure if it's the "correct" way of doing things, so I'm just looking for some advice. ...
0
votes
1answer
32 views

Nested Views in AngularJS not working

I have the following routing set up for my application: $stateProvider .state('mac', { // domain.com/mac url: "/mac", views: { 'body': { templateUrl: ...
1
vote
3answers
30 views

Unable to create dynamic array of objects in AngularJS

Following is the type of array I am trying to create(avail) on button click - [ {DATE, morning_VALUE, night_VALUE}, {DATE, morning_VALUE, night_VALUE}, {DATE, ...
0
votes
1answer
10 views

angularjs $anchorScroll sometimes refresh all page

I have an app with angularjs routing, but on some view i want to scroll to some specific div and i use anchorScroll but sometimes (not all times) it refresh all page even i stop event propagation. Did ...
0
votes
1answer
13 views

Return a resolved $Resource

I'm kind of new to AngularJS and promises in JavaScript. I've got a .config which uses a provider to create menus in the application that I'm working on. This provider has an enabled property, in ...
0
votes
3answers
37 views

Export variables in JavaScript with Angular?

I'm creating an App that different customers should use. The things that will differ between the customers is for example the brand name and the server URL. I have seen the constant() method, but I ...
1
vote
1answer
38 views

AngularJS to redraw list of divs using ng-repeat

I would like to redraw a list of divs after a user selects a different package but I couldn't find a way to have AngularJS redraw the divs after a package is selected. Here is my sample codes: ...
1
vote
1answer
12 views

Angularjs routing: Cannot read property 'path' of undefined

I'm trying to trigger angularJS routing inside of a function in controller, but it throws back "Uncaught TypeError: Cannot read property 'path' of undefined". Can't really see where I missed $location ...
0
votes
1answer
17 views

how to restrict logged user to move on login page or signup page in angular js?

i have following code : .run(function($rootScope, $location, Auth) { //Redirect to login if route requires auth and you're not logged in $rootScope.$on('$routeChangeStart', function(event, ...
0
votes
2answers
30 views

AngularJS - cascading select from same source

I need something similar to this: http://jsfiddle.net/PR6FM/, but done in angular way. The problem is that Im creating the selects by ng-repeat, it looks like this: <div ng-repeat="newCar in ...
-2
votes
1answer
22 views

how to create buttons dynamically in angularjs [on hold]

Hi i am new to angularjs. i'm not getting how to create buttons dynamically in angularjs. saw many examples on android, but none of on angularjs. i need to retrieve one value from .js to .HTML file ...
0
votes
1answer
22 views

How can I take one large object, use a sub-object of that as the data for multiple instances of the same controller, and keep them both in sync?

Apologies for the ambiguity of the question :-P I have a single JavaScript object which contains all my data. And I have a controller which I will use multiple times throughout the application. So ...
0
votes
1answer
19 views

Why is angular not parsing my template?

I have an angular directive where I'm compiling a template via the templateCache after the directive has loaded. For some reason, my {{}} is being output in the template instead of being parsed and ...
1
vote
2answers
53 views

AngularJS not showing data in view

I stuck with the angularjs data display in view. I got correct data in angular controller. but it is not binding in HTML. All things are corencct. <div class="well well-sm well-light"> ...
1
vote
1answer
13 views

Angularjs uses data-src automatically - want to use jquery.unveil.js

i what LazyLoading images with Unveil inside an Angular app. Unveil uses the real Image URL in data-src and can't use a custom "data attribute" like data-unveil. The Problem is that Angular is ...
0
votes
1answer
17 views

Error: [ng:areq] http://errors.angularjs.org/1.2.25/ng/areq?

I need some help guys. Just had to learn angular, I was setting my up just like this. Here is my file structure. AboutController.js function AboutController( $scope ){ $scope.data = { ...
0
votes
0answers
23 views

Checking authentication in Laravel via Angular

In my Angular app I created a service: .factory('Auth', function($http) { return { is_authenticated: function() { return $http.get('/api/users/is_authenticated'); } ...
0
votes
0answers
6 views

Google Map doesnt work in Bootstrap UI Tab

I use the Bootstrap Tabset to wrap up Bootstrap slider and Google Map and other pages however, the slider works fine but google map doesnt work properly, but it work perfect in street view The ...
3
votes
1answer
29 views

input value get hidden when ng-model is aded

i have a form with the angular values in it. <tr ng-repeat="alldata in c.da"> <td>{{alldata.id}}</td> <td><input type="text" ...
0
votes
1answer
34 views

how show the hide element in anguler js?

I am trying to display the "[6] Peter who is 95 years old" value in text box which is hide.But It should show when the <button ng-click="show_id(friend.id)">get my id</button> is clicked. ...
0
votes
0answers
18 views

Require issues with ui-bootstrap js

Hi I just started angular and I am simply just trying to pass a ui.bootstrap dependency to my app but keep getting this error: I am trying to recreate the accordion example here ...
1
vote
1answer
21 views

Angular ng-repeat repeat tr with multiple td

I was working on my ECommerce application and trying to implement angular js in my application. My current html code without angular is like . Each tr having 4 products. <table ...
4
votes
2answers
28 views

Why is ng-style function applied twice?

I've got an angular app like: angular.module('ngStyleApp', []) .controller('testCtrl', function($scope) { $scope.list = [1,2,3]; $scope.getStyles = function(index) { ...
0
votes
2answers
26 views

Iterating inside a ng-if or ng-show in AngularJS

I am working on a AngularJS web application and sometimes I need to check if the element inside the ng-if or ng-show directive is inside a list. I'm doing this now: <div ng-if="object.element=='A' ...
1
vote
3answers
36 views

How to handle click event in my class

I am trying to add a class to a clicked element and remove it when user clicks other elements. I have something like <li ng-repeat='test in tests' > <a href='' ...
1
vote
0answers
19 views

Angularjs+karma+Jasmine:how to write jasmine test for child to verify if parent methods are called?

I am using karma with jasmine for unit testing in my angularjs app.Given the following code snippet, i am try to check from child if parent method is called and i am facing issues as shown below. ...
0
votes
1answer
34 views

Using $http with Bootstrap UI

I am working on an app that uses AngularJS and Bootstrap. I am trying desperately to get my autocomplete example working. My example works successfully when my service returns an array. However, when ...
0
votes
1answer
17 views

$timeout guarantees when implementing a cache service in angular js

I am implementing my own cache because I need it to be aware of the semantics of my application. I am implementing the cache within a client API that access a REST service. The logic is simple: I ...
1
vote
1answer
21 views

AngularJS: enable button on form input change

I have an app with a lot of settings in long form pages. You are expected to go to the pages to view the current settings, or to update them. I would like to make it so that the "update" button is ...
0
votes
0answers
11 views

Mocha/Jasmine Unit Test `TypeError: undefined is not a function`…Does not say where

I am new to testing in Angular/Javascript and this is my first unit test using Mocha. What I am doing is giving a value of NodeInVip-49-1 in the input box and expecting the drop down typeahead to at ...
0
votes
1answer
25 views

How to call function from div on load in angularjs

I am trying to pull value in div element and once I get value I would like to call a function to get data. I am unable to call function inside div element HERe is my Html stats.html <div ...
1
vote
1answer
18 views

Filter by multiple boolean properties in angular js smart-table

I have the following situation: A list of indicators, each of them having the properties name, description, essential and differential. $scope.indicators = [ { name: 'indicator1' , description: ...
1
vote
0answers
16 views

Transition between two single-page-app pages within the same angular application

How could I move from a page that uses an ng-app="MyAppFrontEnd" and its own set of CSS and JavaScript to a different page that uses ng-app="MyAppAdminEnd" and has its own set of CSS and JavaScript? ...
1
vote
1answer
27 views

resetting a copy of an array in an angular function after .splice()

What I am trying to accomplish is making a dropdown menu in angular that removes the current page from the list. When the next view is loaded I want the menu to reset and remove the now current view. ...
0
votes
0answers
15 views

Node & Angular: Best way to stream videos from server

This is a general question and doesn't involve any code at the moment. I am working on a project in Angular & Node. One of the views I've made has a list of videos on it created with ng-repeat. ...
0
votes
0answers
10 views

How to prevent a reload of the view or/and controller (angularjs) when the state params are changed in the url

I have three views (three controllers) in one page (one app), everytime I click on checkboxes (part of one of views) the result view has to refresh the results, but everytime I click those filters the ...
0
votes
2answers
45 views

AngularJS directive scope property matching

I am trying to write an isolated directive that will run regex to validate certain input fields. I want the directive to know what regex to match up on and use based on an attribute on the input. a ...
0
votes
1answer
23 views

Angular update model data maintain selected option in select list

I am new to Angular and trying to work with a Product object. The Product object contains many Sku objects within it. A user can use my app to fetch a product, which returns the Product object, ...
0
votes
0answers
20 views

AngularJS returning placetext html

I'm writing a search script to return a bunch of HTML, but it doesn't seem to be working, I'm trying to use $sce. function SearchCtrl($scope, $http, $sce) { $scope.url = 'search.php'; // The url of ...
0
votes
1answer
26 views

Angular ng-repeat groupBy and Keep order

Im using this filter https://github.com/a8m/angular-filter#groupby to order my data like so, and it works great: <div ng-repeat="(key, value) in tags.tags.objects | groupBy:'category.name' "> ...