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
1answer
4 views
Bind a event on change Angular-carousel
I am using Angular carousel . I need to bind a event on the change of A -> B, or B -> A
<ul rn-carousel rn-carousel-indicator rn-carousel-index="slideIndex" class="my-slider slider3 carousel-ui ...
0
votes
0answers
18 views
Bring single item to top of list
Given an arbitrary list of items, in a ul or set of divs, I would like to use the angular way to bring the selected item to the top of a list/display.
$scope.items = [{name: "Garfield", id: 1}, ...
0
votes
0answers
7 views
how to upload /and drag or drop multiple file in angular?
can you please how I will use dropzone.js plugin in angular .I want to upload multiply file .use can also drag the files.I do some RND find this
http://www.dropzonejs.com/
Now I want to use this on ...
0
votes
1answer
11 views
Angular JS How to Get All Values for The Same Key in the Model using ng-repeat
The following is a JSON model used in Angular.
$scope.numbers = [
{"0":"206-000-0008","connection":"206-000-0008","1":"dandelion","topic":"dandelion"},
...
0
votes
2answers
13 views
Binding Input to Angular controller function
I have a shopping cart that shows the name of the flavor and quantity, then the total $ of each flavor. Then at the bottom of all the flavor, I have the calculation of the entire shopping cart.
HTML:
...
0
votes
0answers
13 views
Angular binding not working when using popover directive
I have this input field in a form in my AngularJS app:
<input type="text" data-ng-model="githubRepoUrl" id="githubRepoUrl" class="form-control" placeholder=" popover="Popover text here." ...
0
votes
0answers
10 views
What are those _compiler arguments good for? _compiler(_element.childNodes, _directiveMap)(_injector, _element.childNodes)
I need help in understanding dart-code that I successfully use.
(Details: I use it to inject SVG graphics containing bindings to variable CSS classes)
Can I call the constructor arguments here ...
0
votes
2answers
11 views
JavaScript/Angular: How to initialize a property from an array of the same object?
This is what I'd like to do in an Angular factory:
app.factory('dataService', function () {
return {
data: ['5', '10', '20', '50', '100', '200'],
selectedData: data[0],
},
...
0
votes
0answers
14 views
Pass array of objects from angular to laravel
I have an array of objects goes like this:
[{"optval":5,״optid":1002,״questid":1}, {...}]
I want to send it to to my laravel controller and just see the results on screen, after decoding, how do i ...
0
votes
0answers
3 views
Handling assets on angularjs and middleman
I'm having a difficult time on integrating angularjs to my middleman app. I'm following the phonecatApp tutorial for angularjs and on tutorial 6 about templating and linking images. The output is fine ...
0
votes
0answers
22 views
angular js: build directive tag in template
In a template I would like to do something like:
<my-{{data.type}}></my-{{data.type}}>
but it doesn't replace the {{data.type}} markup.
Is there a solution or a workaround for this?
0
votes
0answers
10 views
convert jQuery tree view to AngularJS
I have this jQuery function that I'm trying to convert to AngularJS. The function turns nested lists into a tree view structure. I have looked at several examples that create the tree completely in ...
0
votes
0answers
7 views
ui bootstrap typeahead throwing error
I am using Angular v1.3.0-beta.17
This is the error: I have no idea what is causing this. Some people say its because the controller is not using promises. Others says that it's the deprecated ...
0
votes
1answer
19 views
ng-repeat inside compiled html for directive
I have two directives:
window.app.directive('placeholder', function ($compile, $route, $rootScope) {
return {
restrict: 'AC',
link: function (scope, element, attr) {
// Store the ...
0
votes
2answers
17 views
Send HTTP Header Requests with AngularJS
I am trying to send a HTTP GET request to a remote server and use the response on an HTML page.
Below is the project/js/script.js page
var app = angular.module('app', ['ngResource']);
var ...
-3
votes
1answer
17 views
AngularJS - Populate input control using passed object data [on hold]
I am new to AngularJS. I have an object passed from another page which is having data and I need use this object and populate the values in respective input controls like label,textbox. After ...
1
vote
1answer
21 views
Angularjs ngModel typing state directive
I'm using angularjs to validate a simple form. I'm showing my validation message when the user stops typing. This is part of a custom directive where I validate the entered text for uniqueness on my ...
0
votes
0answers
10 views
Full height angular UI accordion
I'm trying to make an Angular UI accordion full height no matter how big the content in the accordion groups is.
Se JSFiddle: http://jsfiddle.net/hanspc/TBz9F
My HTML:
<div id="wrapper" ...
0
votes
1answer
14 views
Error in simple directive
I am learning Angular and was trying to create a simple directive given in a book. The code is given below.
I am getting the error, Uncaught SyntaxError: Unexpected token : on line
template: ...
0
votes
1answer
8 views
How to reference transcluded element?
I am transcluding an SVG element into another SVG directive. Here is the template for the parent directive called "component":
<svg xmlns="http://www.w3.org/2000/svg">
<rect ...
0
votes
1answer
11 views
How to delay execution of a controller (angularjs) till an external JS file loads?
I'm working on a Youtube API based project in which I've already bootstrapped angular.
I'm encountering a problem when I need to call an external JS to load the iFrame API js file first and then allow ...
-1
votes
1answer
11 views
Private Properties in Controllers
As my controllers become more complicated, i have properties that should not be mofified. What is the best practice for creating private properties on controllers which can only be accessed by ...
0
votes
0answers
15 views
Find all dependents of a particular service with Angular
Is there a way to get a list of all functions, services, controllers, directives etc. that explicitly declared a dependency on a specific service?
Why do I need it?
Because the service provides data ...
0
votes
1answer
25 views
How to check the first radio input generated by ng-repeat?
Here's my code:
<div ng-repeat="color in item.color">
<input id="{{color}}" name="color" type="radio" value="{{color}}" ng-model="$parent.chosenColor" />
<label ...
0
votes
2answers
23 views
How to count input tags created by ng-repeat
I am working on an Angular app that has a large survey form. I am making a status bar that will indicate what percentage of the form has already been completed. The form contains 9 input fields that ...
1
vote
0answers
16 views
How to Do MultiDimensional Autocomplete JQuery/Angular
Right now I have an autocomplete directive with two types of inputs: a general and a more specific category (e.g. states vs cities, categories of business (retail) vs lines of business (retail ...
0
votes
1answer
12 views
grunt serve - live reload only works in app/*.html but not in app/views/*.html
i'm new to yeoman, grunt and bower.
i made an angular app with yeoman and now i try to edit the gruntfile.js. But live reload only works for files which are in 'app' - folder. in folders like ...
0
votes
1answer
12 views
How to provide mock files to change event of <input type='file'> for unit testing
I'm having difficulties with a unit test in which I want to verify the processing of a file, which would usually be selected in the view via <input type='file'>.
In the controller part of my ...
0
votes
0answers
9 views
ngStrap typeahead: show results by the click of a button
I am using ngStrap typeahead and I am stuck for some time now trying to do something simple: right now, the typeahead results are shown where the input field is focused. What I need now is to be able ...
0
votes
1answer
25 views
Unable to update an object inside MongoDB collection using HTTP Put?
I am new to AngularJS and I was trying to update my MongoDB Database. I am having an issue when I am trying to update an object inside my collection. The following is my attempt at trying to do so:
...
0
votes
1answer
16 views
angular.js routing only on webserver
I'm new to Angular.js so bear with me. I found Angular's routing pretty neat which is why I want to try my first Webpage with it. My approach is the following:
<!doctype html>
<html ...
0
votes
1answer
26 views
java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is 1000
we all know we see this exception when try to bomabard the query with more than 1000 values. the maximum for the column limit is 1000.. the best possible solution is to split the query into two.guys ...
0
votes
0answers
8 views
“heroku run fileName” after grunt build
To learn more about heroku scheduling I read this post and built the app described in it. The key part of this post was when I was able to heroku run numCheck and the code within the numCheck file ...
0
votes
2answers
21 views
angular js directive attribute and controller scope
I would like to have a directive which creates a div as title and a ul list under it.
I want the title to be set from attribute and a the list by a controller.
Here is a fiddle of my code
HTML:
...
0
votes
1answer
19 views
Is this the proper way to wrap a third-party library as an Angular.js service?
I'm trying to wrap Snap.svg as a service of my application. The code below works, but is this the right way to go about it?
var svgService = angular.module("svgService", []);
...
0
votes
0answers
22 views
How can I create a combination function that takes an input and returns an upper and lower bound with AngularjS?
My application has the following functions:
parsePid = () => {
var rc = this.utilityService.parseRange(this.configService.admin.pidRange);
this.pidLower = rc.lower;
this.pidUpper = ...
0
votes
0answers
9 views
How can I append a url to a state`s route without using state.go or reloading the state
I have this state definition:
.state('events.selected.dates.week', {
url: '/week/:eventDate',
This link triggers the state change:
<button ui-sref="events.selected.dates.week" ...
0
votes
0answers
18 views
AngularJS - textarea placeholder not showing while in ng-repeat
So I found out that if I use <textarea placeholder="Write something.."></textarea> inside ng-repeat, the placeholder of the textarea only shows on focus.
If I remove the ng-repeat of my ...
0
votes
0answers
8 views
AngularJS and Firebase not showing the $id
I am trying to do an application that tracks attendees' approval of a speech or similar. I am facing a challenge which holds me off for now several hours.
Here is the js file
...
0
votes
1answer
7 views
Charging all documents in the application scope slows?
I want to create a view which displays all events created worldwide. this view will contain filters (country, title of event ...) to be able to filter the events according to the user's criterion. The ...
0
votes
2answers
20 views
Angular and radio input not working with ng-model
So I have an Angular project with the following in my directive template
<div ng-repeat="poll in polls">
<div ng-repeat="choice in poll.choices">
<input type="radio" ...
1
vote
2answers
17 views
angular.js > How can i get inner JSON data in view ( using ng-repeat directive )
i am having trouble with angular.js rendering json data with ng-repeat directives. I am currently working with Django REST Framework. Please see the source code below. Thanks.
REST API works very ...
1
vote
2answers
27 views
List array objects properties sepatated with ,
I have a array of objects with property 'name'.
<script>
function FriendsCtrl($scope) {
$scope.friends = [{
email: ['abc', 'def'],
name: "i'm noob"
}, {
email: ['ghi', 'jkl'],
...
-2
votes
0answers
26 views
The filter query is no working properly [on hold]
I want to filter my list according the letters of the name.
For example if I write ta I expect that only the names which include ta will appear in the list. However sometimes I don't get the expected ...
-4
votes
1answer
19 views
How to fill drop down list values using AngularJS
Provide simple code that can be used to fill HTML drop down list values dynamically using AngularJS code. Please include multiple solutions if possible.
-1
votes
1answer
36 views
How to write simple Hello World program in AngularJS?
I am new to AngularJS and would like to start with very simple programs before moving forward to more advanced usage.
What would be most simple runnable AngularJS program?
0
votes
1answer
31 views
Using AngularJS to post to server using $http
I'm sure this will be a duplicate of some other post, but I just can't find it?
I have just started looking at Angular and have written the following as per various sources online.
HTML:
<div ...
1
vote
1answer
28 views
how to send parameter value in second view in angular?
can you please tell me how to display the value of parameter on second view ?Actually I make a form in which there is two field : name and class .when user press(after filling fields) add it generate ...
0
votes
2answers
20 views
Resolved - MEAN.JS stack $http.post().success() passing variables into success() anonymous function scope issue
I'm trying to make this work:
$http.post('/route/path', {'username': $scope.threadedUsers[currentIndex].name}).
success(function(data) {
$scope.threadedUsers[currentIndex].ID = data._id;
...
0
votes
1answer
26 views
Accessing controller name outside of ng-view
Is there a way to access the name of a controller when the controller is defined seperate from ng-view?
<div ng-controller="Ctrl1">
<!-- Some code -->
</div>
<div ng-view>
...