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.
203 questions
2
votes
1
answer
271
views
Unit testing a Web Worker in JavaScript/TypeScript - Best Practice
I got assigned with writing unit tests for a class that instantiate a Worker inside in it's constructor. The code looks simmilar to this,
class SomeClass {
private _worker: Worker;
constructor(...
1
vote
4
answers
478
views
Is it best practice to only use still-supported languages when developing apps?
I am looking to create a multi-page web app. I had begun the construction of this web app in angularJS when I realized this was no longer being supported. I am early enough in development that it isn'...
59
votes
4
answers
74k
views
Should I be using both AngularJS and ASP.NET MVC?
I started learning AngularJS and ASP.NET MVC, but am not sure why to use them both together in the same project?
Aren't they both MVC frameworks? Should I be using them both in the same application? ...
49
votes
10
answers
32k
views
Under what conditions is the use of MVVM appropriate?
Model View View-Model was developed by Microsoft to target UI development platforms which support event-driven programming, specifically Windows Presentation Foundation (WPF) and Silverlight on the ....
2
votes
1
answer
2k
views
Refresh tokens by example using Angular and Spring Boot
I am designing out an app that would have an Angular frontend and Spring Boot (Java) backend.
I was considering (but not married to) the prospect of JWT-based authentication:
User logs in with ...
36
votes
4
answers
52k
views
Should angularjs directive directly interact with services or is it considered an anti-pattern?
Which one is considered better:
having a directive that interacts with services directly
or
having a directive that exposes certain hooks to which controller may bind behaviour (involving services)?
2
votes
1
answer
6k
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
1
answer
396
views
Implementing Business Logic in Architecture
I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform.
I am confuse in one point if i try to ...
2
votes
2
answers
770
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 ...
35
votes
6
answers
7k
views
Progressive Enhancement vs. Single Page Apps
I just got back from a conference in Boston called An Event Apart.
A really popular theme amongst the speakers was the idea of progressive enhancement - a site's content should go in the HTML, and ...
11
votes
4
answers
18k
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 ...
16
votes
4
answers
16k
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 ...
7
votes
4
answers
2k
views
Clean, Modular Code vs MV* Frameworks [closed]
I've been hearing a lot about the "new" MV* frameworks. I've tinkered with KnockoutJS (I created an invoicing application), but I much prefer to write clean, modular code in raw JavaScript - ...
-1
votes
2
answers
381
views
Achieving server-side rendering of data coming from a PHP API
I have been working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8. It is intended to be versatile and easy to use.
The Dashboard of the application is "pure" Codeigniter, ...
1
vote
1
answer
2k
views
Node and Angular two separate applications or a single application?
I am a java developer. Since one of our developers are leaving I was handed over a project he was maintaining. He says it is a node + angular js project. But as per my understanding, backend should be ...