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
20 views
Redirect user to application based on role
I've asked this here rather than stack overflow as it is more of a concept question, rather than a coding bug/error.
I've inherited an old MVC4 project. We want to slowly start to retire it, and ...
0
votes
1answer
47 views
AngularJS controller definition
I'm beginning using AngularJS (v1) framework, and after browsing good practices I found those examples (from this page https://github.com/johnpapa/angular-styleguide/tree/master/a1), like :
/* ...
-3
votes
1answer
32 views
What is best one between JSF and angular for java hibernate,spring,strut application?
I want to develop application using java frameworks(spring,hibernate,strut). This application has large complex operations.I want to know what is the best between JSF and angular? As well as i want ...
0
votes
0answers
43 views
Best Approach for Multilanguage Website - ASP.NET MVC Routing vs AngularJS Routing Translation
So I am building my website with the option for changing language on the entire website, now it came up the question to my mind.. should this be done my the server (using in my case ASP.NET MVC) ? I ...
1
vote
2answers
48 views
How can I tell when the Angular2 online documentation (or any website) changes?
I'm trying to keep up-to-date with the latest-greatest from Angular2, in part by carefully reading the official online documentation. Is there a way to be notified or at least to figure out relatively ...
-2
votes
0answers
23 views
Getting started with an angularJS app, need help creating a database and querying it
I'm trying to learn AngularJS by creating a small app which will require users to register/log in. I understand that I will need a server side language and I'd like to use NodeJS along with MongoDB ...
0
votes
1answer
25 views
REST API crossresource operations structure
I'm wondering what's best practice in next use case:
I'have a view that displays data for 3 resources User, Company, and CompanyType (chosen in select, can be added dinamicaly so it's not enum).
What ...
2
votes
1answer
113 views
In a JavaScript method signature what is meant by a return type of `typeof blahBlahBlah`?
I've seen an API list methods with both of the following signatures:
methodA(...) : ReturnType
methodB(...) : typeof ReturnType
I understand the first but not the second.
My question comes ...
0
votes
1answer
20 views
How should I balance memory with network latency on a paginated table?
A web application I'm working on has a tool that queries a database and returns up to several thousand rows. When considering pagination, at what point does it make more sense to get the entire result ...
0
votes
0answers
23 views
Socket.io takes time to load up, what to do while the page is connecting…?
For a real-time forum app I'm working on currently.
It takes about 1-5 seconds for the sockets on my node.js server to connect and deliver the first payload, which is some database results from mongo....
2
votes
0answers
38 views
How to wireup the Edit Functionality of a Entity and make REST API when it contains Dropdown Values
I am having a scenario wherein we have a Product Entity or a Front End Module which can be Added, Edited and Deleted.
Now Product ( when added or edited) can contain a Dropdown called as ...
0
votes
0answers
46 views
Dashboard architecture with many widgets
I work on a web application, a dashboard that displays account movements for a client or a group of clients between two dates
and many widgets of computed data based on these movements. For example, ...
0
votes
0answers
73 views
How to design the state tree using redux?
In the last days I have searched for a documenation on how and when is it best to use redux and how to design the state tree.
My research ended in the conclution that there is no one currect answer.
...
0
votes
0answers
93 views
When do I use square brackets around routerLink in Angular2?
In Angular 2 (currently 2.0.0-rc.6), routerLink is used as a directive to indicate a path we wish to follow in our routing, e.g. in response to clicking a link.
However, in the documentation both of ...
2
votes
1answer
106 views
Globally interesting state in angularjs
I've created maybe five services like RoleService, AuthService, etc. Each of them has some state (e.g., RoleService.role, AuthService.isLoggedIn) affecting a lot of controllers and some other services ...
1
vote
2answers
272 views
Scalable Angular SPA Architecture
I am developing an Angular SPA and I am currently in the design phase. I have created a sample architecture which I am planing to use in my SPA but I would get some feedback because I want the ...
0
votes
0answers
49 views
Difference between .net mvc model binding and angular js model binding
I am very new in angular js.I am confused what is the 2 way data binding in angularjs.
Suppose In my mvc4 application i have bind the model with the view and user changes the value of a textbox which ...
0
votes
0answers
248 views
Composing large Angular 2 app with multiple small apps within
After long 3 months of debate and research in choosing between React (with Redux) and Angular 2, front-end team in my company has concluded to go with Angular 2 (given that it is more suited for our ...
0
votes
1answer
106 views
Populate User info between services on microservices architecture
I'm working on a microservices architecture which contains a couple a REST API as a services and a SPA as an interface. In addition, there are an "special" (is not speacial at all, it just special ...
2
votes
0answers
121 views
Different type of MEAN Stack Architectures
I am reading a book (Getting MEAN by Simon Holmes) about MEAN Stack which talks about different architectures that can be used while developing an app in MEAN Stack and I got a little confused with ...
0
votes
1answer
842 views
Is Angular 2 ready for production use or should I use AngularJS 1? [closed]
I want to learn AngularJS but on the website I see a button with the text Try the new Angular 2.
Is Angular 2 ready for production use or should I learn and use AngularJS 1?
0
votes
0answers
101 views
Strategy To Upgrade Frontend Javascript Code - Typescript or New Framework?
Here is my scenario. I would like advice on which path to follow, along with good reasons as to why. It would even be better if you could give an example based on experience of a similar decision but ...
0
votes
1answer
59 views
Recommended strategy for changing javascript UI table library?
tl;dr - On an existing angularjs grid library, am moving to another.
Is it better to wipe out as much code as possible and in a sense code from scratch to the same featureset, or work around what's ...
0
votes
1answer
150 views
Is it a Good Idea to use REST API from Javascript Code
I am Developing a E-Commerce Web Application as a part of my learning using Spring Hibernate and AngularJs.
I have written some Rest API's Controllers in Spring and then from the Web Component i am ...
1
vote
0answers
156 views
How should I decide switching to vue.js from angular or not as a team member?
Currently I am working on a project that the view depends on data input by user a lot, so AngularJS was used in the project. This was the usual choice of our small team. (so small it is still below 10 ...
0
votes
0answers
54 views
Exposing 'utility' functions with AngularJS
I have an single-page Angular application which contains several controllers, directives and services. The fact here is that there are some controllers that hold two type of methods:
"Scope" methods, ...
2
votes
4answers
230 views
Unit of Work AngularJS
I am writing an application in Angular JS (1.5), and I need to be able to track a model for changes (updates/deletes/additions). For example, I have an ng-model that holds an array of user pets. This ...
0
votes
0answers
53 views
AngularJS: cost of deep watching infrequently changed object trees
I am working on a complex widget with a "preferences" object tree with 50-100 objects and 3-5 properties in each object. Each property is watched by Angular and controls how some aspects of the data ...
0
votes
0answers
41 views
Automating the deployment of a web application to a shared host
I was not really sure in which SO community I should ask this question, so I am asking it here.
I have a basic Angular web application, and I am ready to deploy. The app has no backend to deploy (I ...
0
votes
1answer
142 views
Separate codebase for responsive website and mobile apps?
I made a simple responsive single page web app (about 5 views) to replace our old jsf web application using angularjs+bootstrap. Now looking into frameworks like ionic, cordova and trigger.io.
what I ...
0
votes
0answers
45 views
Is passing controllers to another controller a good practice in AngularJS?
I have a register page that uses text inputs as well as an avatar input. There's another part in the website where the avatar input is also used, but it's used alone this time. So I'd like to make it ...
2
votes
1answer
181 views
Structuring a Game with Angular.JS [closed]
For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to ...
0
votes
0answers
28 views
Do you inject everything explicitly used in a module even if it is loaded in a “parent” module?
When you build a app modularized what do you inject into submodules? Only those things that are used there but not added at the top level, or do you inject everything that is explicitly used in that ...
0
votes
1answer
75 views
Web App Authentication's Architecture Related Query
I have a web app that makes use of node.js in the backend and angulajs on the front end.
Let's say I have a user who has the ability to login via multiple systems; I must allow multiple logins.
I ...
1
vote
1answer
71 views
Linking service and factory functions to controller $scopes in Angular
I'm trying to keep my controllers as thin as possible, so I keep my domain logic in services and factories.
When I need to call a function in response to a user action like a click I assign the ...
2
votes
2answers
99 views
Angular View Model Validation
The view model seems to be the most appropriate place to perform validation yet Angular seems to be pushing me down the popular form validation route.
Why Model Validation?
DRY - Applying validation ...
2
votes
1answer
267 views
REST is not appropriate for business applications because of necessary to distribute business logic accross layers. REST alternative required!
I have Spring+Java Server Faces (Facelets) application for which I would like to create Single Page Application (SPA) version, e.g. using AngularJS (which is the best and most popular GUI framework). ...
1
vote
0answers
232 views
Can't separate code, angular 1 component router
I'm trying to organize my code a bit differently than the tutorial for component routing. Quite simply I want to my app to have this structure.
app.js
-components/
+-settings/
+-settings.js
+-...
9
votes
3answers
967 views
Where to put the Angular app in a ASP.NET Web API solution?
I'm starting a greenfield app and I want to use ASP.NET (4.6) and Angular 2. For the backend I have created a project in Visual Studio, and now I'm wondering where to put the Angular app. I really ...
2
votes
3answers
192 views
Can one html page with web services replace current server-client technology?
I have everything I need in 2 services in form of REST api's, is it a good idea or even possible to replace my existing asp.net app by writing ONE single html page (embedded with Angular templates) ...
2
votes
2answers
747 views
Client-side Rendering vs JSP's for Spring MVC Front End Dev
Firstly, a note on the app I'm about to discuss: It's quite large, on the order of magnitude of a service app like Airbnb -- i.e., it's not just a static web page, it is a full web application. It's ...
0
votes
0answers
63 views
Angular2: Do services exclusively handle getting/updating models?
I'm testing the waters of Angular 2 with an app that manages car dealer inventory. Suppose I have a simple model:
export class Car {
id: number;
make: string;
model: string;
color: string;
}
...
0
votes
0answers
65 views
In AngularJS, if we use a factory object as the data store, should all directives be responsible for watching on it?
I worked on a project using AngularJS where we add, edit, or remove data from a factory object (which is also called a service object, and therefore is a singleton object).
The left side of the web ...
1
vote
1answer
98 views
Best practice for storing external text to then place in html
Sorry if I'm not explaining the question well in the title, I'm not sure of the correct lingo. Let me give you an example instead.
So this is a normal HTML file.
<span>Well to the site!</...
2
votes
1answer
133 views
Is there any reason to use id= or name= on AngularJS directives?
I have just noticed that I am coding stuff like this:
<input type="text" ng-model="userName" id="userName" name="userName" />
And it occurs to me that I have access to the data though ng-data. ...
1
vote
1answer
129 views
Code smell in AngularJS custom directive
In the below code.
<!DOCTYPE html>
<html ng-app="app10" ng-cloak>
<head>
<title>Custom directives</title>
<style>
[ng\:cloak], [ng-...
1
vote
1answer
37 views
Where should my service do it's data fetch?
I have an angular service that fetches data that will be used by multiple controllers. I only want to fetch the data from the db once and then have the service store the data in an object which ...
0
votes
0answers
19 views
Rightness of reducing dependencies by grouping them for an application
This question is not technology specific althought a technology specific answer is welcome. Furthermore i'm asking about a design problem for an application which have (in my opinion) not the same ...
-2
votes
2answers
299 views
Angular JS vs Modern MVC frameworks
I might be wrong for some things here, but here is what I recently though about.
Modern frameworks MVC such as ASP.NET MVC 5, CakePHP, Java Spring etc. has their logic clearly separated into Models ...
1
vote
0answers
291 views
In what situation will AngularJS caching the DOM element be useful when using ngRepeat?
I think one of the things a developer faces when using ngRepeat, is that the when the i has the same value in an array, as in ng-repeat="i in myCtrl.arr", then:
angular.js:13236 Error: [ngRepeat:...