mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-11695] move version compatibility directive and service (#8038)
* [AAE-11695] move version compatibility directive * [AAE-11695] remove spare readme section
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
Title: Version Compatibility Directive
|
||||
Added: v3.9.0
|
||||
Status: Active
|
||||
Last reviewed: 2020-23-06
|
||||
Last reviewed: 2022-07-12
|
||||
---
|
||||
|
||||
# [Version Compatibility Directive](lib/core/src/lib/directives/version-compatibility.directive.ts "Defined in version-compatibility.directive.ts")
|
||||
# [Version Compatibility Directive](lib/content-services/src/lib/version-compatibility/version-compatibility.directive.ts "Defined in version-compatibility.directive.ts")
|
||||
|
||||
Enables/disables components based on ACS version in use.
|
||||
|
||||
@@ -33,7 +33,7 @@ The directive takes the version specified in the html and compares it to the ver
|
||||
|
||||
This will allow certain features to be only present under specific versions.
|
||||
|
||||
#### Major version
|
||||
### Major version
|
||||
|
||||
```html
|
||||
<button *adf-acs-version="'7'">
|
||||
@@ -41,7 +41,7 @@ This will allow certain features to be only present under specific versions.
|
||||
</button>
|
||||
```
|
||||
|
||||
#### Major and minor version
|
||||
### Major and minor version
|
||||
|
||||
```html
|
||||
<button *adf-acs-version="'6.2'">
|
||||
@@ -49,7 +49,7 @@ This will allow certain features to be only present under specific versions.
|
||||
</button>
|
||||
```
|
||||
|
||||
#### Major, minor and patch version
|
||||
### Major, minor and patch version
|
||||
|
||||
```html
|
||||
<button *adf-acs-version="'6.0.1'">
|
||||
@@ -61,4 +61,6 @@ It can be set to match major, minor and patches of ACS versions. Fox example, if
|
||||
|
||||
If the minimum version required is not matched the component will not be initialized and will disappear from the DOM tree.
|
||||
|
||||
Note, if you don’t place the * in front, the app won’t be able to inject the TemplateRef and ViewContainerRef required for this directive to work.
|
||||
```text
|
||||
Note, if you don’t place the * in front, the app won’t be able to inject the TemplateRef and ViewContainerRef required for this directive to work.
|
||||
```
|
@@ -11,7 +11,7 @@ Being a standard Angular application, the lifecycle and the tasks described for
|
||||
|
||||
The command to be used is the same of any Angular application
|
||||
|
||||
npm nstall
|
||||
npm install
|
||||
|
||||
## Applications and distributions
|
||||
|
||||
@@ -86,7 +86,3 @@ In case of ADW, update the `apps/content-ee/src/app/extensions.module.ts` file a
|
||||
Once built, the compiled ADF-based application is available as a collection of files directly in the `dist` folder. The promotion of the distribution of the application in a different environment can be done simply by copying the files in the target server.
|
||||
|
||||
Also in this case, nothing differs from a standard Angular application and the same tips and best practices can be followed.
|
||||
|
||||
# Conclusions
|
||||
|
||||
In this content you learned the most common and basic tasks for ADW and any ADF-based application.
|
Reference in New Issue
Block a user