AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
14 views
Angular animate parent div of ng-view using element insde ng-view [on hold]
I am so stuck (Been trying for days now).
Is it possible to animate a parent div of ng-view using a directive from the routed pages???
I want to animate both the page routing in ng-view & the ...
-3
votes
0answers
8 views
AngularJS $http.get JsonResult [migrated]
I am building a dx-chart inside of an AngularJS file. I would like to use $http.get inside of my ng-controller. Here is the AngularJS file. However, when I try to use $http.get I still display the ...
0
votes
0answers
59 views
Angular Architecture
I have been developing a few prototype apps in Angular, with various backends, including firebase and php/mysql. I'm pretty sure I'm not using a good organization pattern for development because of a ...
0
votes
0answers
60 views
Using $timeout to normalize response time of a webservice call (Best practice question)
Consider you have a simple, standard $http request to a REST api:
...
function makeCall() {
var restURL = "http://my-rest-api/endpoint";
return $http.get(restURL);
}
...
If the execution ...
0
votes
0answers
25 views
How to handle karma/bower in a Symfony Bundle on github?
i am working on a Symfony Bundle that uses angular among other javascript deps.
Now i want to unit-test my javascript code and i want to ship those tests as well.
My initial idea was to add ...
0
votes
1answer
69 views
angularjs best practice by example
I am trying to get my head around how to better structure my angularjs applications by not overloading my controllers with too much logic. I feel like I have read just about every article on the ...
1
vote
1answer
55 views
Should I request the backend for every small piece of dynamic data?
Let's suppose there's a page implemented with AngularJS.
Ideally the frontend (Angular app) and backend (Web services/API/ call it whatever you like) should be 100% separated from each other which ...
-1
votes
1answer
67 views
How to connect mean.js to AWS S3
I am trying see how I can upload images and file to aws S3 via the mean.js framework. I am not sure how the backend is linked to S3. There are no resources online about this specific framework and ...
0
votes
2answers
42 views
Making backend service urls configurable
First of all, I will talk a little about the purpose of this question. We have several linux boxes on the same network on which different services are installed, some times these boxes are ...
3
votes
3answers
191 views
With only backend development experience, how do I go into frontend development (js, html, css)? [closed]
Currently I am interning at a company as a "full stack" developer (Application developer on the job title) and I realize that I am having difficulties coping with frontend tasks. This is especially ...
0
votes
1answer
84 views
Design pattern for multiple companies in AngularJS
We are on the verge of launching v3 of our in-house product. v2 was written completely in AngularJS and V3 will be the same, but written completely in Typescript.
We have a few customers that have ...
0
votes
1answer
37 views
Changing a directive's template based on state
I'm trying to figure out the best patter for applying when writing a particular type of Angular directive. In this scenario, I want it to display a login form if a user is logged out, and then switch ...
0
votes
1answer
26 views
Image uploads - preoptimize with CDN or host on same machine?
I'm working on a personal blog that will be used for reviewing various goods/services and as a dev journal. I'm writing this in Angularjs and Nodejs as a learning experience, but I plan on using it ...
4
votes
1answer
358 views
Create an AngularJS front end for a Microservices application
I want to create a Microservices application, in which every microservice is responsible for its own part of the front end. At the same time, I want to create the front end in AngularJS as a Single ...
2
votes
0answers
83 views
Separating AngularJs and Django into individual Apps?
I am building a web application using AngularJs and our web server is built in Python Django Rest Framework.
I would like to have the two projects separated and not coupled.
In my current setup the ...
3
votes
1answer
215 views
Been working on a project for the last 6+ months. Consultants have been brought in and want to change everything. What should I do? [closed]
Long story short, I have been the sole front end developer on this project since last summer. Consultants have been brought in to help accelerate our velocity. After one day and some knowledge ...
0
votes
2answers
171 views
What is the best way to create dynamically a DOM?
I know that there are plenty answers to this question on stackoverflow, but I can´t find one that give me an answer that can help me to solve a question that came out after read a lot of Javascript, ...
3
votes
0answers
213 views
Is obtrusive JavaScript required to support a feature of AngularJS?
I'll start by saying I'm just learning about AngularJS, and I was reading this article, which seems to advocate for obtrusive JavaScript as the right thing:
...
1
vote
0answers
203 views
How can I use protected Tastypie resources within Angular?
I have a working Django 1.7 project with an API (Tastypie) made available for mobile clients (ApiKeyAuthentication).
I am using Angular with Chart.js, and so I need to GET some queryset using ...
1
vote
0answers
228 views
How does AngularJS manage scope in ng-repeats?
I have a table that has around 60 rows and 20 columns. Each cell has a directive with an isolated scope. I use 2 nested ng-repeats to generate the table (one for rows and one for columns), but I'm ...
3
votes
1answer
141 views
How do I create a modal service with AngularJS?
I'm trying to make a service that's polymorphic based upon what mode is specified in the URL. If the char param in the route is set to 'p', I want to use a PresentMode service. If the char param is ...
1
vote
1answer
47 views
Is having a parent controller to manage a set of tabbed sections an anti-pattern for an angular application?
A lot of times, I have long forms that I divide into multiple tabbed sections. Each section is managed by it's own controller and there is a parent controller that manages the whole view. I use ...
2
votes
0answers
60 views
AngularJS directive as components
I am in a project where we want to componentify a lot of "information boxes". These boxes (lets say they are mostly different types of tables) should easily be included into different pages and even ...
1
vote
0answers
44 views
How can I structure my angular app so that I don't end up with one huge controller and view?
I have an angular app that concentrates most of its functionality around a primary entity that has several satellite entities. The UI for this is effectively one screen, with a few tabs, one for each ...
3
votes
1answer
224 views
Functional programming pattern for async JavaScript code
I have adopted a pattern in one of my projects that I really like and I suspect it's likely to be something standard. I'd like to describe it here and see if you guys can tell me how other ...
2
votes
1answer
251 views
NodeJs website webapp architecture
I would like some advice on how best to architect a website comprising the following:
tool
a landing page, open to the public, main marketing tool
the main website/app, that people can access only ...
2
votes
0answers
109 views
How to avoid module dependency chain nightmare caused by transitive dependencies?
Many (most?) AngularJS folks seem to advocate for breaking AngularJS apps up into many modules.
Brian Ford in his blog already states that packaging by layer (controller, service, etc.) is a "silly" ...
1
vote
1answer
190 views
Server side or client side mvc: which approach imposes less load on the server?
Which is the best approach when developing a dynamic web app with multiple views and dynamic content. regarding server load and responce times:
use a server side mvc (such as Sailsjs or ASP.NET MVC) ...
0
votes
0answers
64 views
Becoming a basket integration provider
I am looking to creating a basket integration solution that our retailer partners can make use of.
Option 1
I was considering creating this as a HTML + JavaScript (AngularJS) application so we could ...
1
vote
0answers
121 views
Is one of these the more “Angular” way of communicating with a directive?
I am working on a project where I would like to encapsulate a directive library and distribute it to other developers to use. I would like to keep the changes to the model within this encapsulated ...
2
votes
0answers
47 views
Angular UI's $StateProvider [duplicate]
I was thinking of using Angular UI, and specifically its $StateProvider, which makes it easy to create nested views, in my next application. Until now, I have been using vanilla Angular's ngInclude ...
1
vote
1answer
45 views
SPA Applications: AJAX to fetch templates or build from strings
I'm working on a large angular application and I'm currently using a factory class that builds HTML templates from strings. We don't have to worry about mobile support for the application and I'm ...
2
votes
1answer
122 views
In AngularJS, why do we use scope instead of $scope in the directive link?
Just curious why whenever I see an example of a directive using a link, the parameter for scope is scope and not $scope?
This is always biting me because I'm so used to typing $scope, my brain ...
3
votes
1answer
5k views
Using ng-init to initialize data in Angular controller
Recently I came across the following in one of our projects. In one of our MVC views they are passing model data to an Angular controller through ngInit directive.
In xxx.cshtml:
<div ...
2
votes
1answer
274 views
What is the “best practice” for converting an external API's data structure?
When an API's data structure does not fit well with an angular app, I am trying to determine the best-practice in my specific design and implementation for converting it to a usable structure.
I was ...
3
votes
1answer
248 views
Cross browser client side storage
I am developing an angularjs app. The app has to run in current FF, IE, Chrome and on iOS/Android via Phonegap.
I am looking for a solution to store data in the client.
Phonegap offers a web sql ...
0
votes
1answer
73 views
Ideal & idomatic javascript interface for RESTful API
I am trying to write an angular service to interface with a RESTful API.
For sake of simplicity, lets assume the API is
+ Company
|___+ Department
| |____ Person
|
|____ Person
Notice how ...
4
votes
1answer
2k views
AngularJS Directive vs Service vs Controller
I am about to start implementing a change request on my companies internal website, that will check a bunch of fields and highlight them if they match certain guidelines. For example, if the date of ...
0
votes
1answer
142 views
Would it be the right software engineering system to move from AngularJS-based to jQuery-based or hybrid implementation for webapp?
I am presently working on an AngularJS-based chat webapp, and it polls the server for updates, and then renders them in what is pretty much a straight shot in AngularJS. The result looks appropriate ...
1
vote
0answers
358 views
AngularJS directive architecture: Where to put parameters?
I'm using a charts-Plugin (Morris.js) in my AngularJS application. I'm building a directive for each type of chart.
The plugin is called like this:
new Morris.Line({
// ID of the element in which ...
1
vote
1answer
519 views
AJAX or web sockets for client-server communication?
I recently took a course on AngularJS, and quite frankly I loved the concepts of a website that fetches json to handle subsequent requests, however I still feel like Javascript is far too slow for ...
0
votes
2answers
2k views
How to structure REST api service that accepts POST parameters in the body
Everything I've read says to pass parameters to a REST service in the URI, whether by template, or query string:
https://www.myapp/my/login/api/authenticate/ganders/mypassword
or
...
1
vote
2answers
152 views
Using AngjularJS with Twitter Bootstrap
I want to refactor an OLD legacy application and give it a new feel... so, I want to use Twitter Boostrap for the UI... I've also been playing around a lot with AngularJS... is it common place to use ...
-1
votes
2answers
419 views
Javascript, JQuery and now AngularJS What is happening? [closed]
I have been away from computers for about 3 years and starting to get back into programming. Lots has changed in resources and help sites available on the web especially the evolving StackExchange ...
0
votes
2answers
426 views
Why don't we completely de-couple frontend JS frameworks and backend APIs? [closed]
Whenever we implement a frontend framework in the likes of Backbone, AngularJS etc. there's an integration process involved with the backend technologies like NodeJS, Rails, Yii etc. (like setting up ...
9
votes
2answers
12k views
AngularJS: structuring a web application with multiple ng-apps
The blogosphere has a number of articles on the topic of AngularJS app structuring guidelines such as these (and others):
http://www.johnpapa.net/angular-app-structuring-guidelines/
...
1
vote
0answers
99 views
What is a good method of storing test data for development and unit testing with angular and jasmine?
What is a good method of storing JSON data/objects for development and unit testing with angular and jasmine?
I have seen some ways of accomplishing this. However, since I am new to unit testing with ...
4
votes
3answers
459 views
Dividing responsibilities between client and server
I'm working on a Web app that uses node.js on the server and AngularJS on the client. I'm new to Angular, but enables writing client-side applications that can be more self-contained than some other ...
4
votes
1answer
6k views
Suggested setup for angularJS development in Visual Studio 2013 [closed]
I am starting with AngularJS. The back end will be Web API (which is new to me as well) and I'd like to use just one IDE, so I'm trying to figure out how to setup a project in Visual Studio 2013 for ...
0
votes
1answer
1k views
Global variables in javascript
I don't consider myself a highly skilled javascript developer, but I thought I got one thing right for sure: don't create global variables unless you really have to.
I've been learning angularjs ...