Angular JS and Java : dictionary
Updated: 2016-09-26
Angular and Java are full stack frameworks, for this reason the applications implemented with the 2 technologies tend to have similar logical layers.
The following table try to match the different terminology of Angular and Java. The match is not 100% correct but the goal is to help the developer to quickly find himself in the other technology.
AngularJS and Angular 2
|
<td valign="top" width="326">
<strong>Definition</strong>
</td>
<td valign="top" width="313">
<strong>In Java</strong>
</td>
Template
|
<td valign="top" width="326">
HTML with additional markup
</td>
<td valign="top" width="313">
JSP or JSF page
</td>
Directive
|
<td valign="top" width="326">
custom attributes for HTML
</td>
<td valign="top" width="313">
custom tags in JSP, custom component in JSF
</td>
Model
|
<td valign="top" width="326">
data showed in the view
</td>
<td valign="top" width="313">
Model in Spring, Managed Bean in JSF
</td>
Scope
|
<td valign="top" width="326">
context in where the model is stored
</td>
<td valign="top" width="313">
Request / Session etc.
</td>
Filter
|
<td valign="top" width="326">
formatting for the screen
</td>
<td valign="top" width="313">
JSTL formatter in JSP, converter in JSF
</td>
Controller
|
<td valign="top" width="326">
logic behind the screens
</td>
<td valign="top" width="313">
@Controller in Spring, @RequestScoped
</td>
Injector
|
<td valign="top" width="326">
retrieve object instances from the provider
</td>
<td valign="top" width="313">
@Inject
</td>
Module
|
<td valign="top" width="326">
container for a part of the app (services, directives, …)
</td>
<td valign="top" width="313">
Package artifact
</td>
Service
|
<td valign="top" width="326">
business logic
</td>
<td valign="top" width="313">
@Service, @EJB
</td>
Don’t hesitate to suggest other terms or send corrections.