Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
aitp-utils
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aneo Web Talents
Angular
core
aitp-utils
Commits
396b2c65
Commit
396b2c65
authored
Feb 07, 2019
by
Emile TAVERNE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Création composant generique utilisant in viewport
parent
b1940592
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
aitp-utils.module.ts
src/lib/aitp-utils.module.ts
+3
-2
in-viewport.component.html
src/lib/components/in-viewport/in-viewport.component.html
+3
-0
in-viewport.component.ts
src/lib/components/in-viewport/in-viewport.component.ts
+9
-0
index.ts
src/lib/components/index.ts
+1
-0
public_api.ts
src/public_api.ts
+1
-0
No files found.
src/lib/aitp-utils.module.ts
View file @
396b2c65
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
*
as
Components
from
'./components'
;
import
*
as
Directives
from
'./directives'
;
import
*
as
Directives
from
'./directives'
;
import
*
as
Services
from
'./services'
;
import
*
as
Services
from
'./services'
;
@
NgModule
({
@
NgModule
({
imports
:
[
CommonModule
],
imports
:
[
CommonModule
],
declarations
:
[
Directives
.
InViewportDirective
],
declarations
:
[
Directives
.
InViewportDirective
,
Components
.
InViewportComponent
],
providers
:
[
Services
.
ViewportService
],
providers
:
[
Services
.
ViewportService
],
exports
:
[
Directives
.
InViewportDirective
]
exports
:
[
Directives
.
InViewportDirective
,
Components
.
InViewportComponent
]
})
})
export
class
AitpUtilsModule
{
}
export
class
AitpUtilsModule
{
}
src/lib/components/in-viewport/in-viewport.component.html
0 → 100644
View file @
396b2c65
<div
(
inViewport
)="
showMyElement =
$event.isIntersecting"
aiutInViewport
>
<ng-content
*
ngIf=
"showMyElement"
></ng-content>
</div>
src/lib/components/in-viewport/in-viewport.component.ts
0 → 100644
View file @
396b2c65
import
{
Component
}
from
'@angular/core'
;
@
Component
({
selector
:
'aiut-in-viewport'
,
templateUrl
:
'./in-viewport.component.html'
})
export
class
InViewportComponent
{
showMyElement
:
false
;
}
src/lib/components/index.ts
0 → 100644
View file @
396b2c65
export
*
from
'./in-viewport/in-viewport.component'
;
src/public_api.ts
View file @
396b2c65
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*/
*/
export
*
from
'./lib/aitp-utils.module'
;
export
*
from
'./lib/aitp-utils.module'
;
export
*
from
'./lib/components'
;
export
*
from
'./lib/directives'
;
export
*
from
'./lib/directives'
;
export
*
from
'./lib/operators'
;
export
*
from
'./lib/operators'
;
export
*
from
'./lib/services'
;
export
*
from
'./lib/services'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment