Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [angularjs]

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
53 views

How can I pass data in an AngularJS app without introducing tight coupling?

Let's say I want to create an AngularJS (Angular 1.x) app. The page will have two sections: on the left, a panel with a bunch of user inputs: textboxes, radio buttons, etc. On the right, some kind of ...
-1
votes
1answer
930 views

Angular header/footer, Component or Module

I have been learning angular for a while now and I understand the point of modules and components (briefly) but now I am starting my own project using the framework I am somewhat confused. When should ...
-3
votes
1answer
332 views

Angular 5- Where should logout code sit?

I want to create Logout Functionality in Angular 5. The logout function will contain following pseudo code: Clear local storage authentication JWT token Redirect to login page My question is; where ...
3
votes
1answer
141 views

IEC 62304, Are Software Frameworks (Spring/JEE/Angular/React) considered SOUP?

Im working on the implementation of an IEC 62304 compliant development process in our company and I have a question considering SOUP (Software of unknown Provenance). Our goal is the develop a web ...
-1
votes
1answer
385 views

Why was Google Maps built using canvas? If it was built today, would it have rather used react/angular? Why (not)? [closed]

Google Maps' frontend is almost completely dependent on canvas. Given that it was initially developed a long time ago, is it still the best approach to take to build such a UI? If not, what is and ...
1
vote
0answers
107 views

Design differences in Angular UI components and regular JS UI components [closed]

I'm an experienced JS developer and I've been involved in front-end development for multiple web applications. I've developed a couple of custom JS components to suit the project. I'm currently tasked ...
-3
votes
2answers
1k views

Is it better choice to use both AngularJS and ASP.Net MVC for developing ecommerce website?

I know about MVC, But I don't have such experience with AngularJS. But both has controller and View. To develope like e-commerce site, is it good choice to choose AngularJS to do filtering with ...
2
votes
1answer
91 views

Why JS MVC frameworks prefer data binding to UI element reference?

When you are using frameworks like Angular, Angular2+, and React, the way you put data in the UI is by binding a property to an attribute of a UI element. On the other hand, when you're doing ...
0
votes
0answers
73 views

Put all Single Page Application code inside index.html?

I'm sure I am not the first one who thought about it but couldn't find any mention of this approach on the Internet. What the pros/cons? It will increase the size of index.html by few megabytes, but I ...
1
vote
1answer
437 views

How to architect a very big web application using server and / or client rendering?

I recently finished a project which contains more than 30 different pages/features. Each one with some CRUD and more subpages. Each page is totally different from another in purpose. All of it was ...
1
vote
1answer
2k views

Django - separation from the frontend (Templates)

Long story short, let's assume I want to create a webpage that would enable the users to sell used cars. I am a beginner to webdev, so pardon my ignorance. Fun fact: two months ago I knew literally ...
0
votes
1answer
114 views

For what reasons would you use AngularJS expression (&) binding instead of using events?

Like the title asks, for what reasons would you use the ampersand binding in AngularJS instead of utilizing an event system--especially in a case where your application already uses events for some ...
0
votes
2answers
310 views

Load JSON immediately for SPA instead of AJAX? (Python=>AngularJS)

I have access to a Response object in my python backend for returning HTML pages, etc. I can declare headers, content-type, etc. Instead of re-engineering the Python to use something like Django/...
3
votes
2answers
551 views

What is the right time to go for Code Refactoring, not optimization?

I've been working on a Python(Django)/JavaScript(AngularJS) based application for some time now.(I learnt all of these on the way, had previously been a Java only programmer)and have hit moments where ...
-1
votes
2answers
203 views

Front end engineering : Best way to implement a step by step check out cart

I have implemented a checkout cart like this : Navigation rules are as follows : User can move to next step only on completing the current step. But he is free to click on the previous tab and edit ...
1
vote
2answers
518 views

Stateful Single Page Application with ASP.NET Core

I'm building a simple shopping cart using Angular and ASP.NET Core with. There is no login require and user can always checkout and make payment as a guest. The front end would be built with Angular, ...
1
vote
1answer
190 views

Design Patterns for drawing a custom graph in a webapp

I am building a web application which is meant to help display prices of products. The web-app is centered around showing prices in a custom bar chart. I am thinking it should be composed of a Model ...
8
votes
4answers
3k views

Better ways than traditional polling methods

I'm currently in a AngularJS/Javascript environment. Currently the application using the polling method (i.e, to retrieve new data from server in a fixed amount of seconds). This is quite taxing ...
0
votes
0answers
71 views

How to make my E2E tests verify results of an action?

I'm working on a project with an AngularJS app that talks to a RESTful API. We've just started writing E2E tests for the app in Protractor. I'm fairly comfortable with unit testing but new to end-to-...
0
votes
1answer
222 views

AngularJS - is there a good reason why unit testing of angularJS controller should still be written alongside with e2e tests?

Given the official tutorial of angularJS, https://docs.angularjs.org/tutorial/step_07#testing It is apparent that it only tests the controller's states (e.g. its model) when events happen (e.g. ...
0
votes
1answer
3k views

Single page app vs multi page application?

My experience has been using the hybrid approach per use case demand: Where content on same page needs to be updated, we used AJAX/SPA approach But when the page has a completely different layout/...
0
votes
1answer
200 views

Does Angular2 or Angular4 offer an app state and middleware promise like React / Redux?

I used Angular 1 and React / Redux, and one thing I like about React / Redux is that there is a definite app state, and a middleware that can convert a promise into real data. In Angular 1, we often ...
3
votes
1answer
349 views

Is it true that for both React or Angular, they are also both “convention over configuration”?

In the Ruby on Rails communication, it is often said that RoR is "convention over configuration". Can you say for React / Redux / Flux and AngularJS, Angular2, they are also "convention over ...
0
votes
1answer
423 views

What are architectural approaches for converting large multipage apps to use new JavaScript frameworks?

We have many siloed legacy multipage applications. For example, a personal information collection application may contain four or five HTML4 form based applications. The backend is based on Spring ...
3
votes
1answer
183 views

Does AngularJS or Angular 2 provide something similar to the Redux middleware so that AJAX data appear immediately available?

I am learning React / Redux, and one feature I like is, when you fire off an Action, you actually provide a request as the "result" or what is called the payload in Redux, and the Redux middleware won'...
2
votes
1answer
137 views

Automatically update and test npm dependencies

I would like to automate the following sequence of events; A new version of Angular is released on Github 'Something' triggers causing all our angular applications to update their npm dependencies ...
4
votes
1answer
536 views

Communication between Angular directives and their parent controller

I'm trying to provide a convention, or standard, for a parent controller to communicate with a directive in Angular. Basically the directive will have a "settings" object containing callbacks and ...
-2
votes
3answers
594 views

what is better way to architecture project

I am pretty new to angular.js world. I wanted to know best architecture for my solution. I have 4 projects in my solution. First is angular.js app solution which has below structure. Is this correct ...
-1
votes
1answer
309 views

I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?

Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
1
vote
1answer
268 views

Angular and desktop

I'm reading about Angular on their website here: https://angular.io/features.html, and I see the following: Cross Platform Progressive web apps - Use modern web platform capabilities to ...
0
votes
1answer
560 views

Should client-side model contain foreign keys to extract data already on client

I'm currently building the front-end of an application using AngularJS. I don't have a whole lot of knowledge about the back-end, but some of the data I'm being served by the back-end developer is ...
1
vote
0answers
63 views

Best way to handle access to web dashboard displayed on “dumb” screen

My web application has a dashboard page written in angularjs that is intended to be displayed on a screen in a room as a way of monitoring the information therein. It's a dumb screen connected up to ...
1
vote
0answers
341 views

Is this flux design for angular good?

I am currently on an angular 1.x project, and we are about to add user interactions that will cause data changes. We already identified some flows in our app that seem like flux might resolve, so we ...
0
votes
0answers
41 views

How to implement forms with almost same fieldsets used in two pages?

I use AngularJS 1.5. In my app I have a registration page(controller1 + template1) with form1. After registration user can change his data on his personal pages form2(controller2 + template2). The ...
0
votes
1answer
319 views

How should I prepare my SVG for production? [closed]

I have a project in Angular1.x using a lot of SVG files. I have no idea what to do to SVG files to prepare them for production. I don't want my page to invoke 50 calls to different SVG files. So ...
7
votes
1answer
634 views

Order and filter Server-Sent-Events in angular.js eventsource

I have a Client in AngularJS where I consume multiple SSE (Server-Sent-Events) in Java from the Server Side (there are multiple endpoints in different web servers in the backend). Diagram link I ...
6
votes
2answers
4k views

RESTful API communication between multiple web servers

I'm trying to understand RESTful communication, but I still have a few doubts. I have a main web application (on the right side of the Architecture) made in AngularJS, which shows data coming from ...
-2
votes
2answers
554 views

Understanding Backend

I recently got into website development and am in the process of making my first website using Angular 2 right now. I already created websites in the past using basic HTML and PHP but that was nothing ...
1
vote
1answer
448 views

Understanding webpack and other module loaders

I am a bit confused regarding module loaders Like I am using webpack which load modules as chunks but it is only while developing When the code gets minified it will be a single file for all scripts ...
1
vote
1answer
709 views

Best way to rewrite an mvc application to an angular architecture

We have an mvc application that we would like to gradually move to an angular platform. It is a wizard style app with 6-8 pages. We currently have a classic mvc layout. We would like to move to an ...
0
votes
2answers
139 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
2k 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
898 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
102 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 ...
0
votes
1answer
55 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
220 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
30 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
76 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
60 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
560 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. ...