Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability, reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
1answer
13 views
How do I show a confirmation dialog from a controller in angular without breaking “the rules”
So I have a user interaction that can perform a task. The task can be initiated with:
A drag and drop,
a keystroke,
A couple of selects and a button press.
The task has a few constraints:
If ...
0
votes
1answer
13 views
place items into url that go no where but are referable
I understand that my question is vague, which is probably the reason I can not find anything online.
This is what I am attempting to do. I want to have a URL like so:
http://app.myurl.com/8hhse92
...
0
votes
1answer
13 views
Bootstrap Modal Hiding when form submitted using AngularJS
I'm using Bootstrap 3 (not Angular-UI Bootstrap). Whenever I submit a form in a modal using ng-submit, the modal closes automatically and leaves a div.modal-backdrop on the body.
This is only ...
0
votes
1answer
6 views
Angular resource custom url
I'm trying to add a simple method on an angular resource, basically like this:
/api/resource/:id/archive
If I do it just like this:
angular.module('myApp')
.factory('api', function($resource) {
...
0
votes
1answer
13 views
Angular 'duplicates in repeater' error before repeated array is returned
I've just started seeing this error in Angular.js (1.5)
Error: Duplicates in a repeater are not allowed. Repeater: day in forecast key: string:o
at ngRepeatAction (url...)
The strange thing is, ...
0
votes
0answers
7 views
ui bootstrap datepicker with unix timestamps
I am trying to use ui-bootstrap datepicker binded to unix timestamp datas.
to do so, i would like to use this directive which transforms the unix timestamp to a javascript date from ng-model.
here ...
0
votes
0answers
9 views
Error in resource configuration while using $resource.query() function with AngularJS/Rails
I'm new to angular and I'm trying to add it to one of my Rails projects. I'm using the angular-rails gem. I want to list users using $resource.query() and I'm getting the following error:
...
0
votes
0answers
6 views
AngularJs, DropZone.Js - Has anybody worked out a way to keep the dropzone transfers on the Angular root scope?
Would like to show the transfers from dropzone with progress in an angular view. With 2 way binding the changing progress should be easy to implement, but does anybody know how to access the transfer ...
0
votes
0answers
14 views
Canvas fill/strokeText adds random marks to canvas
So I've been working on this canvas drawing app. One component of it allows you to add text to the canvas using the fill and stroke text methods.
Sometimes, upon adding the text, random markings, ...
0
votes
0answers
7 views
AngularJS and adding Custom Data to a state in $stateProvider
Reading the section here I have tried adding custom data to a state and I keep getting an undefined error for the custom data object.
Plunkr here.
See line 50 of app.js, which is where the error ...
0
votes
0answers
8 views
Angular and digest auth
I use passport.js with my node.js server.
I have an RESTFull api and want to implement digest auth so that my user can then interact with my API.
In Angular, using $resource, how can I implement the ...
1
vote
1answer
18 views
Promises, make available on watch, angular JS
I have a problem with understanding promises.
$scope.$watch('selectedPipe', function() {
$scope.sizesFromPipes = test.getSizes($scope.selectedPipe.pipe_id);
...
0
votes
3answers
22 views
how to use angular expression inside template's tag of django?
I wrote in tags.py the following tag:
@register.simple_tag
def getUserName(request, user_id):
return foo(user_id)
In my html template I combined django symbol {{ }} together with angular symbol ...
0
votes
0answers
11 views
magnific-popup with iScroll4
I cannot for the life of me figure out how to integrate a swipe functionality with magnific-popup
http://dimsemenov.com/plugins/magnific-popup/documentation.html
...
0
votes
2answers
30 views
How to create a dynamic front end based on Node JS, MongoDB, Sails JS
Basically I'm writing an app and am using Sails, MongoDB and Node JS for the back end. I'll use Sail's API features and was wondering what would be the best way to make the app realtime.
For ...
0
votes
1answer
21 views
AngularJS Authentication with a restful api that returns a token on success
I'm working with a restful API that when authenticating a user successfully, the request returns a token. The token is then added as a header on every request like this:
Authorization: Bearer ...
0
votes
0answers
29 views
angular-seed web-script.js and cors
I'm stacked for second day... I'm trying to fetch some json from outside domain, but I broke with CORS. I'm almost sure how to use JSONP in AngularJS resource, that problem is with my node.js server ...
1
vote
3answers
31 views
Using ng-repeat index to display different html
I'm using Angular and ng-repeat as well as Semantic UI Grid layout.
I'm trying to display 5 columns in a row. When the fifth item is reached create a new row. The below creates a new row and column ...
0
votes
0answers
6 views
AngularJS route with Image Maps in IE 10, Edge
I'm seeing an odd problem on IE10+ browsers when an image map is used to change views in Angular.
It works if it's the only thing changing the view, but if something else is also changing the view, it ...
0
votes
1answer
21 views
How to target specific ui-view inside ng-repeat (or do this differently)
I'm new to angular and have run into a very basic problem
<div ng-reapeat="thing in things">
<div class="title">{{thing.title}}</div>
<div class="more-text" ...
0
votes
0answers
10 views
AngularJs tinyMce cannot insert link
I'm trying to insert a link using tinyMce editor in angularjs. The problem is that I want prevent the use of all html tags and want allow the use of limited tag.
So I exclude tag except this:
...
0
votes
1answer
26 views
AngularJS inject issue with Angular Bootstrap modal
I am integrating the modal from Angular Boostrap and trying to adapt code sample from here to my app. I get the error: Error: [$injector:unpr] Unknown provider: $modalInstanceProvider <- ...
0
votes
1answer
29 views
Bind and parse HTML content
I am using AngularJS v1.2.1.
The improved ng-bind-html directive allows me to trust unsafe Html into my view.
Example
HTML:
<div ng-repeat="example in examples" ...
2
votes
1answer
25 views
Issue with select and ng-repeat in Angular
I've just started playing with Angular, and I'm having a hard time understanding certain things here. I wanted to set up a list of products, which belong to different categories. Some products are in ...
0
votes
0answers
17 views
AngularJS Nested jQuery UI Sortables with Recursion
I've got a AngularJS directive that hooks up sortables.
I'm trying to create a directive that will allow me to drag and drop new items into a sortable. If that item is a 'section' it should allow ...
2
votes
1answer
27 views
AngularJS. Passing Service as an argument to Directive
I have my own directive: <form-wrapper>
For now this directive uses its own internal controller that use some Service (User service)
Like this:
directives.directive("formWrapper", ['User', ...
2
votes
1answer
24 views
AngularJS fromJson returning string?
I am experimenting with AngularJS's UI-Router for nested views, which seems to be working. However, in line 97, you will find a resolve, which delays the initialization of the nested view until the ...
0
votes
0answers
10 views
AngularUi tinyMce setup
How can I setup the toolbar of tinyMce editor?
I'm usin angularUi directive. I'd like to show only a simple toolbar with text formatting like "bold,italic".
Here's a ...
0
votes
1answer
18 views
Watching model in a Service never catch any change
I have been struggling with this (supposed to be) simple issue for several hours.
What I have got is: there is a provider that will watch the model changes then will update the database accordingly. ...
-7
votes
0answers
27 views
MVC concept angular js [on hold]
I heard about the angular js .Angular js is a used for model view controller.But I have no idea how to work on it .I want to know about it and benefit of angular js.
0
votes
0answers
26 views
Get original transcluded content in Angular directive
Is it possible to programmatically get the original transcluded content within an Angular.js directive?
Within the compile function, $transclude seems to contain the template for mydirective, and ...
1
vote
0answers
42 views
Angularjs CORS HTTP only sometimes sends Options
I realize this is a CORS issue (cross origin resource sharing), however none of the other answers on this site have actually given a real answer, only partials.
JSONP Fiddle code in case it ...
0
votes
1answer
39 views
why Angular $routeProvider configuration requires an ngView declared in HTML
I have no requirement to use ngView, but I need to know the route parameters in my controller. So, I tried to inject $routeParams in my controller. However it did not work util I declared an ngView in ...
0
votes
0answers
20 views
AngularJS injecting $injector give me a instance not a reference
It seems that Angular its injecting a new instance of injector inside my service, see:
services.service("Register", function($injector, Helper){
// $injector is created here when Register is call, ...
1
vote
1answer
22 views
AngularJS - Change Tracking
I'm new to AngularJS. I'm looking at using the $timeout service. I've read that one of the reasons for using $timeout over the JavaScript setTimeout function is because changes to variables in the ...
0
votes
1answer
10 views
angularjs:- $route direct to Url
$route service provides $route.reload().
I am trying to redirect to someUrl.
Something like $route.load('url') or $route.redirect('url');
Can't understand documentation.
0
votes
0answers
15 views
anchor tags and dynamic views in angular.js
I'm taking my first steps with angular, looks promising but i have some issues, hope someone can help.
i have a long html page divided to sections
each section is an anchor tag, you can navigate to ...
0
votes
0answers
18 views
Using Angular constant/value to inject the shared result of a service call to controllers
In another attempt to go around the problem illustrated here I'm thinking to use the config or run blocks of angular to start an Identification service and use constant or value to inject it to the ...
0
votes
1answer
26 views
Angular JS how to update scope variable inside another scope variable
I am bulding a list using ng-repeat from array of objects. One of the property in array is a boolean that will go in ng-show of each element I am building using this array. Array itself is a scope ...
1
vote
1answer
27 views
Angular - resolving for multiple controllers in the same view/route/page
We are building a big SPA , currently the app is build with widgets/components. each with a template, controller. but many can be nested in the same route. for example: In the route /users/ I can ...
1
vote
1answer
21 views
Confused whether using ngModelController on scope is possible
I am very confuse about using ngModelController. For example a controller from directive you can require like this.
myModule.directive('amValidateName', ['validate', function (validate) {
return ...
0
votes
1answer
10 views
breeze binding to decimal in a input html only allows [0-9]
i'm using breeze 1.4.5 and angular 1.2.1
i'm binding directly to a breeze entity to a property of type decimal using the input type "text"
<input class="form-control" type="text" ...
2
votes
1answer
39 views
How to get data attributes value from child elements in angular controllers
Yesterday I start learning AngularJs online. I decided to create some useful stuffs for my new project using Angular. Below is some portion of my hard work :
The HTML Part
<div ...
0
votes
1answer
26 views
Newbie Angular Q - Modifying service output
I've been working on my first angular app all day and have a basic question.
The goal is to create a text field with two strings describing the current url route and action like the following:
You ...
2
votes
2answers
17 views
Writing a test for a directive that does a full page reload in Karma
I would like to unit-test a directive that redirects a user to the social login-url at the backed.
since Karma doesn't support full page reloads, I would like to alter the behavior of the ...
0
votes
0answers
28 views
AngularJS 1.2 - ng-repeat conflict with animate class
I am trying to apply AngularJS to my projects so i have ended with this issue. I am using an animate class (.repeat-item) for the enter-move-leave events for the ng-repeat with following css code:
...
0
votes
0answers
31 views
how to apply style to some text content in textarea in angular
I am trying to create a spell checker for my website using bjspell .Now I want to underline words in textarea that are misspelled.Textarea by default does not support styling specific text.One ...
0
votes
0answers
22 views
why angularjs ng-include breaks 'bootstrap-switch'
I am trying to add a switch to my partial view, it works as long as I am not switching the views using the ng-include. any idea why its breaking?
example in the plnkr code
basically this is what i ...
0
votes
1answer
33 views
Can I watch just one variable changing inside an array of objects in Angular JS?
I have the following variable:
var $scope.abc = [{"a":22,"b":"x"},{"a":33,"b":"y"}];
Is it possible to do a watch on this and watch for just the value of the field a changing?
0
votes
2answers
22 views
Django AngularJS JSONResponse view in rendering json output
i am developing one of my site with the python django where i have been using angularjs in one of my page where i have given the user option to search (specific request). Here is my model..
class ...