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.

learn more… | top users | synonyms

2
votes
0answers
39 views

Upload, convert, and store multiple different product data feeds into a database

I'm not sure if this right location for this question, but here it is. I currently have about 30 different CSV or TXT product data feeds. I am trying to build a tool to 1) upload each feed 2) ...
0
votes
0answers
16 views

Design for responsive app tracker

I'm working a SPA that tracks a number of applications which are scheduled to run on a given computer. I'm creating UI that looks similar to a daily planner. So at the top of the page I have two ...
0
votes
1answer
31 views

Is the controller in Angular and ASP.NET MVC aimed to the same?

Is the controller in Angular and ASP.NET MVC aimed to do the same like: Consume services to shape the data (model) to return to the view. Modal validation.
0
votes
1answer
80 views

.NET MVC authentication to AngularJS to .NET web API advice needed

So i am inheriting a team and a large project that should have been built with a restful back end. For the time it is only reporting and we all agree to build out a web API (separate project) with ...
1
vote
1answer
32 views

Tab management code in single-page applications acceptable violations of the DRY principle?

I have an AngularJS-based single-page app that allows the user to operate multiple items at the same time. I decided to use a multi-tab UI implemented in custom code. However, the user begin to ask ...
-1
votes
0answers
12 views

Need help with Angular and isolate scopes and directives w/o templates [migrated]

I'm trying the following scenario without success (with angular 1.4.7) and was hoping for some pointers on how to proceed. I have the following HTML (simplified) as an Angular view (and use $route, ...
0
votes
0answers
61 views

angularJS code sharing across hybrid Ionic app and regular mobile website

Ok, so in our 'innovation lab', there is currently a push to use Ionic, an hybrid app framework built on top of Cordova for native access and angularJS for the ‘web code’. There are also some ...
1
vote
0answers
72 views

Multi-page application using angularjs

I want to create a multi-page application using angularjs, because i want to make use of a lot of angularjs functionality, like two way binding, form validation, AJAX handling, etc. But I read from ...
1
vote
1answer
58 views

License issues re: using Angularjs and Bootstrap in a desktop app [closed]

I'm a web developer and I've been asked to write a desktop app. The languages and libraries that I'm most familiar with are standard web tools (Javascript, Angular, Bootstrap). If I'm going to develop ...
-4
votes
1answer
79 views

Are javascript mvc frameworks made only for the average programmers? [closed]

So frameworks are just layers of abstraction. Is it true that they are designed for programmers that are not that good, lazy or both, because a good programmer makes his own homegrown libraries to ...
3
votes
1answer
63 views

Could a view call a function of the model directly?

this is a fundamental question about MVC (in particular using AngularJS) and I've found similar questions here, but not the exact same problem: Could the view call a function of the model, or should ...
1
vote
1answer
80 views

Best practice for angular service return value

I have a number of angular services (e.g. a user service) which make various HTTP calls and I'm wondering what the best practice would be for handling errors. For example, I could do: function ...
1
vote
2answers
119 views

UML modeling angular controllers / factories and services

I have to create UML documentation for my upcoming project. Now I have previously worked with Java which as an object orientated language is relativly easy to design UML class diagrams for. For my ...
7
votes
1answer
471 views

Is there a reason not to use HTML5 local storage for content

On many static websites the total size of the actual text content of the most popular 20 pages would come in at under 100kb. I would imagine that it would be possible to leverage HTML5 local storage ...
1
vote
1answer
122 views

Hard time understanding structure of web apps w JS frameworks? [closed]

I'm having a difficult time understanding how web applications work. Please help me understand without giving me google definitions. Baby steps/words would be appreciated =) From what I understand so ...
1
vote
1answer
88 views

Methods of preventing SPAM with an API - AngularJS Website Contact Form

I'm exploring AngularJS and ran into an interesting question. If I develop an API to power my AngularJS website it would include public facing items such as a Contact Form. Assume an API method exists ...
1
vote
0answers
35 views

Responsive design - up to a point - and then an alternative layout

I am using AngularJs. I am unsure whether this is a pure CSS question, or needs some JS to handle logic. Let's say that want to display a grid full of numbers - and some sort of histogram or other ...
0
votes
1answer
61 views

MEAN stack — express?

I've been a rails developer for a bit now, and I've started to get into the MEAN stack through a tutorial. I kinda understand Angular and Node and the purposes they both serve, but I'm not sure I ...
2
votes
1answer
76 views

How to properly manage “business” constants with AngularJS?

I'm working with AngularJS on a browser game and I have a bunch of "business" constants. These constants will be often updated during game testing (game balancing) and are used by different ...
0
votes
1answer
171 views

AngularJS and ASP MVC

We have started to implement AngularJS in our web-applications using ASP MVC. I am wondering what approach to use for building application in the future. Keep using our current stategy: Build the ...
3
votes
1answer
171 views

Is it a good idea to have separate UI components make their own webservice calls?

I have few UI components in an angularjs web-application. Each display data based upon same input. One shows stats which are calculated on the basis of a time period. Other shows a chart of daily ...
2
votes
1answer
89 views

Testing async code: are long sleeps acceptable?

I am testing some AngularJS code using Selenium. Angular updates the DOM in unpredictable order, sometimes completely async (via setTimeout), so it is difficult to know when the DOM has been ...
0
votes
2answers
79 views

In AngularJS - should $resource be used from controller or service?

All the documentation, examples and tutorials I've found on $resource were using it directly in the controller. So far I'm just using $http from services and those services are further used in the ...
0
votes
1answer
74 views

My web app uses ASP, but does-it need it?

I’m relatively new to web development, and I’m amazed at the variety of new concepts in the field. I could probably use some help to synthetize. I have to deal with is a backend written in Delphi, ...
0
votes
0answers
54 views

SPA with RESTful backend

I'm building an app based on ng-seed which is angular setup with routing out of the box. I'm backing the app with a rest interface of which I aim for Richardson level 3 compliance. Often it seems ...
0
votes
1answer
248 views

Why does a lot of Angular source code avoid enclosing the contents of a file in a closure?

I am assuming because it is a standard practice in the Angular world that, any sort of module system has to be wrapped as an Angular module and angular should be the only global variable used which ...
0
votes
0answers
75 views

Server-Side MVCs vs Client Side MVCs

Recently I was asked to do a project as a technical assessment. The assignment is to create a website using Twitters API. The assessment recommended using Django. When I quickly looked up Django I ...
1
vote
2answers
72 views

How many views and controllers do I need?

I did one AngularJs app which was rather complex, with multiple nested tabs, which had multiple nested views & controllers, needed ng-router, and was quite tricky for me to implement, as browser ...
4
votes
1answer
268 views

When to use Prototypes & the correct usage of Prototypes ( Javascript )

I have been programming in Javascript for a while and I am quite comfortable with it. And I know the basic concept of prototypes and I have also used them a few times. But one thing I can't figure out ...
5
votes
1answer
431 views

Importing plain javascript libraries in an AngularJs application

I am working on an AngularJs project which is getting bigger very fast. Currently I need to store some user data, so I was using $localStorage for Angular. But I had a problem, as the application is ...
2
votes
1answer
128 views

Preserving data in js with multipage application

One benefit of single page applications like Angular.js, is that you can store data in a global variable and access in multiple routes. With multiple page applications, the data is lost during ...
0
votes
1answer
158 views

Implementing SEO for a Zend Framework/PHP/Angular.js application

A team has implemented a web application using MySql, PHP with the Zend framework and Angular.js on the client side. I am in charge of implementing the SEO for this application. I understand I have ...
1
vote
0answers
59 views

Best way to traverse data and update nodes in Mongo DB

I am using Angular Tree View in my web app. Data coming from the server is build with https://www.npmjs.com/package/mongoose-materialized getArrayTree() function. What I need is, syncing the ...
1
vote
1answer
451 views

Is “lazy loading” factories in AngularJS using this $q.defer method good practice

I guess I don't believe in myself as a good programmer but I found out this method on my own (not suggestion I'm the first one to do it, but I didn't follow a guide) so it must be broken somehow. $q ...
1
vote
1answer
108 views

AngularJS Different Controller per Role?

I am creating an AngularJS app with a restful-back end. I have 4 types of users for which each component/page may have significantly differnt behavior. What is the best approach to implement this? Do ...
-1
votes
1answer
67 views

angularjs events for launching modals [closed]

I want to be able to launch modal windows from different parts of my angular application for viewing or editing content without changing states/url. My current approach is to create a module for each ...
1
vote
0answers
71 views

Using AngularJS to develop easy to implement modules for customers, wondering if this is a good way to implement this functionality?

Where I'm working, we currently have quite a few clients, both using Wordpress and custom site solutions that require our data to be sent via JSON to their site where they can then display it without ...
6
votes
1answer
191 views

Whether to abstract small repeating code segments in HTML templates?

(The framework used in question is AngularJS so the question can be translated as "Whether to introduce Directives for small repeating code segments in Views") As a developer who focuses on Java ...
2
votes
4answers
315 views

Rich object model in the context of a good REST API and of an existing rich object model on the server-side

First off, let's frame this question in the context of a good REST API and an existing rich object model on the server-side, as well as modern web architecture (MVC frameworks like angularjs). I'm ...
0
votes
1answer
187 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 ...
1
vote
1answer
874 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
94 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 ...
1
vote
2answers
274 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
160 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
154 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
114 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
1k 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
2answers
285 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
300 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
38 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 ...