Repository: alvarotrigo/angular-fullpage Branch: master Commit: 1e6007db1008 Files: 306 Total size: 426.4 KB Directory structure: gitextract_ts7rq1j9/ ├── .editorconfig ├── .gitattributes ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── angular.json ├── demo/ │ ├── angular12/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular13/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular14/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular15/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular16/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular17/ │ │ ├── .eslintrc.json │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ ├── angular18/ │ │ ├── .eslintrc.json │ │ ├── .gitignore │ │ ├── README.md │ │ ├── angular.json │ │ ├── app/ │ │ │ ├── app-routing.module.ts │ │ │ ├── app.component.ts │ │ │ ├── app.module.ts │ │ │ └── examples/ │ │ │ ├── basic/ │ │ │ │ ├── basic.component.html │ │ │ │ ├── basic.component.scss │ │ │ │ └── basic.component.ts │ │ │ ├── dynamic-changes/ │ │ │ │ ├── dynamic-changes.component.html │ │ │ │ ├── dynamic-changes.component.scss │ │ │ │ └── dynamic-changes.component.ts │ │ │ ├── dynamic-ng-for/ │ │ │ │ ├── dynamic-ng-for.component.html │ │ │ │ ├── dynamic-ng-for.component.scss │ │ │ │ └── dynamic-ng-for.component.ts │ │ │ ├── scrolloverflow/ │ │ │ │ ├── scrolloverflow.component.html │ │ │ │ ├── scrolloverflow.component.scss │ │ │ │ └── scrolloverflow.component.ts │ │ │ ├── type-definitions/ │ │ │ │ ├── type.component.html │ │ │ │ ├── type.component.scss │ │ │ │ └── type.component.ts │ │ │ └── using-directive/ │ │ │ ├── using-directive.html │ │ │ ├── using-directive.scss │ │ │ └── using-directive.ts │ │ ├── environments/ │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── index.html │ │ ├── main.ts │ │ ├── package.json │ │ ├── polyfills.ts │ │ ├── styles.scss │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ └── tslint.json │ └── angular19/ │ ├── .gitignore │ ├── README.md │ ├── angular.json │ ├── app/ │ │ ├── app-routing.module.ts │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ └── examples/ │ │ ├── basic/ │ │ │ ├── basic.component.html │ │ │ ├── basic.component.scss │ │ │ └── basic.component.ts │ │ ├── dynamic-changes/ │ │ │ ├── dynamic-changes.component.html │ │ │ ├── dynamic-changes.component.scss │ │ │ └── dynamic-changes.component.ts │ │ ├── dynamic-ng-for/ │ │ │ ├── dynamic-ng-for.component.html │ │ │ ├── dynamic-ng-for.component.scss │ │ │ └── dynamic-ng-for.component.ts │ │ ├── scrolloverflow/ │ │ │ ├── scrolloverflow.component.html │ │ │ ├── scrolloverflow.component.scss │ │ │ └── scrolloverflow.component.ts │ │ ├── type-definitions/ │ │ │ ├── type.component.html │ │ │ ├── type.component.scss │ │ │ └── type.component.ts │ │ └── using-directive/ │ │ ├── using-directive.html │ │ ├── using-directive.scss │ │ └── using-directive.ts │ ├── environments/ │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── index.html │ ├── main.ts │ ├── package.json │ ├── polyfills.ts │ ├── styles.scss │ ├── tsconfig.app.json │ ├── tsconfig.json │ └── tslint.json ├── dist/ │ └── @fullpage/ │ └── angular-fullpage/ │ ├── README.md │ ├── bundles/ │ │ └── fullpage-angular-fullpage.umd.js │ ├── esm2015/ │ │ ├── fullpage-angular-fullpage.js │ │ ├── lib/ │ │ │ ├── angular-fullpage.module.js │ │ │ ├── fullpage.directive.js │ │ │ └── fullpage.interface.js │ │ └── public_api.js │ ├── fesm2015/ │ │ └── fullpage-angular-fullpage.js │ ├── fullpage-angular-fullpage.d.ts │ ├── lib/ │ │ ├── angular-fullpage.module.d.ts │ │ ├── fullpage.directive.d.ts │ │ └── fullpage.interface.d.ts │ ├── package.json │ └── public_api.d.ts ├── package.json ├── src/ │ ├── angular-fullpage/ │ │ ├── lib/ │ │ │ ├── angular-fullpage.module.ts │ │ │ ├── fullpage.directive.ts │ │ │ └── fullpage.interface.ts │ │ └── public_api.ts │ ├── ng-package.json │ ├── package.json │ ├── tsconfig.lib.json │ └── tslint.json ├── tsconfig.json └── tslint.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # Editor configuration, see http://editorconfig.org root = true [*] charset = utf-8 indent_style = space indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true [*.md] max_line_length = off trim_trailing_whitespace = false ================================================ FILE: .gitattributes ================================================ src/app/examples/* linguist-vendored ================================================ FILE: .gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules /dist/demo/* # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode /.vscode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings /.history # System Files .DS_Store Thumbs.db ================================================ FILE: CONTRIBUTING.md ================================================ # Contributing Contributions are **welcome** and will be fully **credited**. We accept contributions via Pull Requests on [Github](https://github.com/alvarotrigo/angular-fullpage). ## Pull Requests Please make sure you follow these points: - Use the `dev` branch to commit your pull requests. - Do not edit files in `dist/` directory - If the pull request is related with an issue, please name the issue number in the comments (eg: #16) - Please prefer clarity over brevity in all cases (variable names, conditions, functions...) - Describe the problem in the Pull Request description (of course you would do it, why do I mention that?) Thank you for your commitment! **Happy coding**! ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: README.md ================================================ # Angular fullpage ![preview](https://alvarotrigo.com/angular-fullpage/imgs/angular-fullpage-wrapper.png?v=2)

Official Angular wrapper for the fullpage.js library.

angular-fullpage version

- [Demo online](https://alvarotrigo.com/angular-fullpage/) | [Stackblitz](https://stackblitz.com/edit/angular-nqsqwk) - [fullpage.js Extensions](https://alvarotrigo.com/fullPage/extensions/) - Brought by [@imac2](https://twitter.com/imac2) thanks to [Vong Panha Huot ](https://github.com/vh13294). ## Table of Contents - [Installation](https://github.com/alvarotrigo/angular-fullpage#installation) - [License](https://github.com/alvarotrigo/angular-fullpage#license) - [Usage](https://github.com/alvarotrigo/angular-fullpage#usage) - [Use extensions](https://github.com/alvarotrigo/angular-fullpage#use-extensions) - [Use scrolloverflow](https://github.com/alvarotrigo/angular-fullpage#use-of-scrolloverflow) - [Dynamic changes](https://github.com/alvarotrigo/angular-fullpage#dynamic-changes) - [Examples](https://github.com/alvarotrigo/angular-fullpage#examples) - [Contributing](https://github.com/alvarotrigo/angular-fullpage#contributing) - [Resources](https://github.com/alvarotrigo/angular-fullpage#resources) ## Installation ```shell npm install @fullpage/angular-fullpage ``` This will install the Angular wrapper as well as [fullpage.js](https://github.com/alvarotrigo/fullPage.js/) library. ## License ### Non open source license If you want to use angular-fullpage to develop non open sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. [Purchase a Fullpage Commercial License](https://alvarotrigo.com/fullPage/pricing/). ### Open source license If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use fullPage under the terms of the GPLv3. **The credit comments in the JavaScript and CSS files should be kept intact** (even after combination or minification) [Read more about fullPage's license](https://alvarotrigo.com/fullPage/pricing/). ## Usage ```typescript // app.module.ts import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule //*** added ] }) ``` You should import the fullpage.js stylesheet on your `style.scss` or `component.scss`: ```scss /* styles.scss or app.component.scss */ @import url(~fullpage.js/dist/fullpage.min.css); ``` ```css /* standard css */ @import '~fullpage.js/dist/fullpage.min.css'; ``` Then use the directive on your component: ```typescript // app.component.ts export class AppComponent { config: any; fullpageApi: any; constructor() { // for more details on config options please visit fullPage.js docs this.config = { // fullpage options licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', // fullpage callbacks afterResize: () => { console.log("After resize"); }, afterLoad: (origin, destination, direction) => { console.log(origin.index); } }; } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ``` You can optionally import types: ```typescript import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; config: fullpageOptions; fullpageApi: fullpageApi; ``` Example of HTML: ```html
Some section1
Some section2
Slide 2.1
Slide 2.2
Slide 2.3
Some section4
``` ### Use extensions In order to make use of [fullpage.js extension](https://alvarotrigo.com/fullPage/extensions/) you'll have to add the extension file to `angular.json`. For example, if we want to use the [`scrollHorizontally`](https://alvarotrigo.com/fullPage/extensions/scroll-horizontally.html) extension we will have to add the path to our `fullpage.scrollHorizontally.min.js` file on the `scripts` array: ```json "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [ "src/assets/fullpage.scrollHorizontally.min.js" ], ``` Then pass the required options to fullPage.js. In this case `scrollHorizontally:true`. ## Dynamic Changes If you want to update fullPage.js with new changes in the DOM call the `build()` method after making those changes. An example can be seen on the [dynamic-changes example](https://github.com/alvarotrigo/angular-fullpage/blob/master/demo/app/examples/dynamic-changes/dynamic-changes.component.ts#L46): ```javacript this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); // <-- here ``` An example for *ngFor can be seen on the [dynamic-changes-with-ngFor example](https://github.com/alvarotrigo/angular-fullpage/blob/master/demo/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts#L45): ```html

Section {{section}}

``` ## Methods fullPage.js contains many [methods](https://alvarotrigo.com/fullPage/docs/#methods). You can access them through the `fullpageApi` reference that you get from the `(ref)` output event. For example: ```typescript // In your component fullpageApi: any; getRef(fullPageRef) { this.fullpageApi = fullPageRef; } // Then you can use any method like: moveSectionDown() { this.fullpageApi.moveSectionDown(); } ``` ## Callbacks You can define callbacks in the `config` object when initializing fullPage. These callbacks will be triggered at the appropriate times during fullPage's lifecycle. For example: ```typescript config = { afterLoad: (origin, destination, direction) => { console.log('Section loaded:', destination.index); }, onLeave: (origin, destination, direction) => { console.log('Leaving section:', origin.index); } }; ``` All available callbacks can be found in the [fullPage.js documentation](https://alvarotrigo.com/fullPage/docs/#callbacks). ## Examples You can check some full examples on the [`demo` folder](https://github.com/alvarotrigo/angular-fullpage/tree/master/demo) and on the [examples page](https://alvarotrigo.com/fullPage/examples). ## Contributing Found an issue? Have an idea? Check out the [Contributing](https://github.com/alvarotrigo/angular-fullpage/blob/master/CONTRIBUTING.md) guide and open a PR ## Resources - [Wordpress theme](https://alvarotrigo.com/fullPage/utils/wordpress.html) - [fullpage.js Extensions](https://alvarotrigo.com/fullPage/extensions/) - [CSS Easing Animation Tool - Matthew Lein](http://matthewlein.com/ceaser/) (useful to define the `easingcss3` value) - [fullPage.js unpakg CDN](https://unpkg.com/fullpage.js) - [fullPage.js jsDelivr CDN](http://www.jsdelivr.com/#!jquery.fullpage) - [fullPage.js cdnJS CDN](https://cdnjs.com/libraries/fullPage.js) - [fullPage.js documentation](https://github.com/alvarotrigo/fullPage.js) ================================================ FILE: angular.json ================================================ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular-fullpage": { "root": "src", "sourceRoot": "src/angular-fullpage", "projectType": "library", "prefix": "fp", "architect": { "build": { "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "src/tsconfig.lib.json", "project": "src/ng-package.json" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "src/tsconfig.lib.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular12/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular12/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular12/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular12-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular12", "index": "./index.html", "main": "./main.ts", "polyfills": "./polyfills.ts", "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular12-fullpage:build" }, "configurations": { "production": { "browserTarget": "angular12-fullpage:build:production" }, "dev": { "browserTarget": "angular12-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular12-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } } } ================================================ FILE: demo/angular12/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular12/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular12/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular12/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular12/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular12/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular12/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular12/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular12/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular12/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular12/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular12/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular12/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular12/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular12/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular12/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular12/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular12/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular12/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular12/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular12/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { ɵa as FullpageDirective } from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpage_api; } ngOnInit() { } } ================================================ FILE: demo/angular12/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular12/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular12/index.html ================================================ Fullpage ================================================ FILE: demo/angular12/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular12/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular12", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh12294", "contributors": [ "vh12294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "12.2.0", "@angular/common": "12.2.0", "@angular/compiler": "12.2.0", "@angular/core": "12.2.0", "@angular/forms": "12.2.0", "@angular/platform-browser": "12.2.0", "@angular/platform-browser-dynamic": "12.2.0", "@angular/router": "12.2.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "12.2.0", "@angular/cli": "12.2.0", "@angular/compiler-cli": "12.2.0", "@types/node": "^12.11.1", "codelyzer": "~6.0.2", "ts-node": "~8.0.0", "tslib": "^2.4.0", "tslint": "~6.1.0", "typescript": "4.2.3" } } ================================================ FILE: demo/angular12/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular12/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular12/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular12/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "ES2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "ES2015", "typeRoots": [ "node_modules/@types" ], "lib": [ "ES2015", "dom" ], "paths": { } } } ================================================ FILE: demo/angular12/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular13/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular13/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular13/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular13-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular13", "index": "./index.html", "main": "./main.ts", "polyfills": "./polyfills.ts", "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular13-fullpage:build" }, "configurations": { "production": { "browserTarget": "angular13-fullpage:build:production" }, "dev": { "browserTarget": "angular13-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular13-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } } } ================================================ FILE: demo/angular13/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular13/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular13/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular13/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular13/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular13/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular13/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular13/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular13/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular13/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular13/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular13/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular13/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular13/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular13/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular13/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular13/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular13/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular13/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular13/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular13/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { ɵa as FullpageDirective } from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi: any; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpage_api; } ngOnInit() { } } ================================================ FILE: demo/angular13/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular13/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular13/index.html ================================================ Fullpage ================================================ FILE: demo/angular13/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular13/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular13", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "13.0.0", "@angular/common": "13.0.0", "@angular/compiler": "13.0.0", "@angular/core": "13.0.0", "@angular/forms": "13.0.0", "@angular/platform-browser": "13.0.0", "@angular/platform-browser-dynamic": "13.0.0", "@angular/router": "13.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "13.0.0", "@angular/cli": "13.0.0", "@angular/compiler-cli": "13.0.0", "@types/node": "^12.11.1", "codelyzer": "~6.0.2", "ts-node": "~8.0.0", "tslib": "^2.4.0", "tslint": "~5.11.0", "typescript": "4.4.4" } } ================================================ FILE: demo/angular13/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular13/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular13/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular13/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "ES2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "ES2015", "typeRoots": [ "node_modules/@types" ], "lib": [ "ES2015", "dom" ], "paths": { } } } ================================================ FILE: demo/angular13/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular14/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular14/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular14/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular14-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular14", "index": "./index.html", "main": "./main.ts", "polyfills": "./polyfills.ts", "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular14-fullpage:build" }, "configurations": { "production": { "browserTarget": "angular14-fullpage:build:production" }, "dev": { "browserTarget": "angular14-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular14-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular14/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular14/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular14/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular14/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular14/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular14/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular14/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular14/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular14/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular14/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular14/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular14/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular14/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular14/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular14/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular14/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular14/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular14/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular14/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular14/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular14/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { ɵa as FullpageDirective} from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpage_api; } ngOnInit() { } } ================================================ FILE: demo/angular14/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular14/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular14/index.html ================================================ Fullpage ================================================ FILE: demo/angular14/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular14/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular14", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "14.0.0", "@angular/common": "14.0.0", "@angular/compiler": "14.0.0", "@angular/core": "14.0.0", "@angular/forms": "14.0.0", "@angular/platform-browser": "14.0.0", "@angular/platform-browser-dynamic": "14.0.0", "@angular/router": "14.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "14.0.0", "@angular/cli": "14.0.0", "@angular/compiler-cli": "14.0.0", "@types/node": "^12.11.1", "codelyzer": "~6.0.2", "ts-node": "~8.0.0", "tslib": "^2.4.0", "tslint": "~5.11.0", "typescript": "4.6.2" } } ================================================ FILE: demo/angular14/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular14/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular14/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular14/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular14/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular15/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular15/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular15/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular15-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular15", "index": "./index.html", "main": "./main.ts", "polyfills": "./polyfills.ts", "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular15-fullpage:build" }, "configurations": { "production": { "browserTarget": "angular15-fullpage:build:production" }, "dev": { "browserTarget": "angular15-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular15-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular15/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular15/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular15/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule, ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular15/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular15/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular15/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular15/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular15/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular15/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular15/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular15/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular15/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular15/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular15/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular15/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular15/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular15/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular15/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular15/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular15/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular15/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild, ViewChildren } from '@angular/core'; import { ɵa as FullpageDirective} from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpage_api; } ngOnInit() { } } ================================================ FILE: demo/angular15/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular15/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular15/index.html ================================================ Fullpage ================================================ FILE: demo/angular15/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular15/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular15", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "15.0.0", "@angular/common": "15.0.0", "@angular/compiler": "15.0.0", "@angular/core": "15.0.0", "@angular/forms": "15.0.0", "@angular/platform-browser": "15.0.0", "@angular/platform-browser-dynamic": "15.0.0", "@angular/router": "15.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.12.0" }, "devDependencies": { "@angular-devkit/build-angular": "15.0.0", "@angular/cli": "15.0.0", "@angular/compiler-cli": "15.0.0", "@types/node": "^12.11.1", "codelyzer": "~6.0.2", "ts-node": "~8.0.0", "tslib": "^2.4.0", "tslint": "~5.11.0", "typescript": "4.8.2" } } ================================================ FILE: demo/angular15/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular15/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular15/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular15/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular15/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular16/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular16/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular16/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular16-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular16", "index": "./index.html", "main": "./main.ts", "polyfills": "./polyfills.ts", "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular16-fullpage:build" }, "configurations": { "production": { "browserTarget": "angular16-fullpage:build:production" }, "dev": { "browserTarget": "angular16-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular16-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular16/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular16/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular16/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular16/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular16/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular16/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular16/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular16/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular16/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular16/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular16/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular16/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular16/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular16/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular16/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular16/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular16/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular16/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular16/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular16/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular16/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'; import { FullpageDirective } from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpageApi; } ngOnInit() { } } ================================================ FILE: demo/angular16/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular16/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular16/index.html ================================================ Fullpage ================================================ FILE: demo/angular16/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular16/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular16", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "16.0.0", "@angular/common": "16.0.0", "@angular/compiler": "16.0.0", "@angular/core": "16.0.0", "@angular/forms": "16.0.0", "@angular/platform-browser": "16.0.0", "@angular/platform-browser-dynamic": "16.0.0", "@angular/router": "16.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.13.0" }, "devDependencies": { "@angular-devkit/build-angular": "^16.2.16", "@angular/cli": "^16.2.16", "@angular/compiler-cli": "16.0.0", "@types/node": "^12.11.1", "codelyzer": "~6.0.2", "ts-node": "~8.0.0", "tslib": "^2.4.0", "tslint": "~6.1.0", "typescript": "4.9.3" } } ================================================ FILE: demo/angular16/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular16/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular16/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "angularCompilerOptions": { "enableIvy": true, "strictInjectionParameters": true, "strictTemplates": true }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular16/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular16/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular17/.eslintrc.json ================================================ { "root": true, "ignorePatterns": [ "projects/**/*" ], "overrides": [ { "files": [ "*.ts" ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { "@angular-eslint/directive-selector": [ "error", { "type": "attribute", "prefix": "app", "style": "camelCase" } ], "@angular-eslint/component-selector": [ "error", { "type": "element", "prefix": "app", "style": "kebab-case" } ] } }, { "files": [ "*.html" ], "extends": [ "plugin:@angular-eslint/template/recommended" ], "rules": {} } ] } ================================================ FILE: demo/angular17/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular17/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular17/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular17-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular17", "index": "./index.html", "main": "./main.ts", "polyfills": ["zone.js"], "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "buildTarget": "angular17-fullpage:build" }, "configurations": { "production": { "buildTarget": "angular17-fullpage:build:production" }, "dev": { "buildTarget": "angular17-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "buildTarget": "angular17-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular17/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular17/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular17/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular17/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular17/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular17/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular17/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular17/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular17/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular17/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular17/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular17/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular17/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular17/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular17/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular17/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular17/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular17/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular17/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular17/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular17/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild, ViewChildren } from '@angular/core'; import { FullpageDirective} from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpageApi; } ngOnInit() { } } ================================================ FILE: demo/angular17/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular17/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular17/index.html ================================================ Fullpage ================================================ FILE: demo/angular17/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular17/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular17", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "postinstall": "ngcc", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "17.0.0", "@angular/common": "17.0.0", "@angular/compiler": "17.0.0", "@angular/core": "17.0.0", "@angular/forms": "17.0.0", "@angular/platform-browser": "17.0.0", "@angular/platform-browser-dynamic": "17.0.0", "@angular/router": "17.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~6.6.0", "zone.js": "~0.14.0" }, "devDependencies": { "@angular-devkit/build-angular": "^17.3.17", "@angular/cli": "17.0.0", "@angular/compiler-cli": "17.0.0", "@angular-eslint/builder": "^17.0.0", "@angular-eslint/eslint-plugin": "^17.0.0", "@angular-eslint/eslint-plugin-template": "^17.0.0", "@angular-eslint/template-parser": "^17.0.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "eslint": "^8.56.0", "ts-node": "~8.0.0", "tslib": "^2.4.0", "typescript": "5.2" } } ================================================ FILE: demo/angular17/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular17/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular17/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "angularCompilerOptions": { "enableIvy": true, "strictInjectionParameters": true, "strictTemplates": true }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular17/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular17/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular18/.eslintrc.json ================================================ { "root": true, "ignorePatterns": [ "projects/**/*" ], "overrides": [ { "files": [ "*.ts" ], "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { "@angular-eslint/directive-selector": [ "error", { "type": "attribute", "prefix": "app", "style": "camelCase" } ], "@angular-eslint/component-selector": [ "error", { "type": "element", "prefix": "app", "style": "kebab-case" } ] } }, { "files": [ "*.html" ], "extends": [ "plugin:@angular-eslint/template/recommended" ], "rules": {} } ] } ================================================ FILE: demo/angular18/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular18/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular18/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular18-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular18", "index": "./index.html", "main": "./main.ts", "polyfills": ["zone.js"], "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "buildTarget": "angular18-fullpage:build" }, "configurations": { "production": { "buildTarget": "angular18-fullpage:build:production" }, "dev": { "buildTarget": "angular18-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "buildTarget": "angular18-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular18/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular18/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular18/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular18/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular18/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular18/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular18/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular18/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular18/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular18/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular18/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular18/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular18/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular18/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular18/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular18/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular18/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular18/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular18/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular18/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular18/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild, ViewChildren } from '@angular/core'; import { FullpageDirective} from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpageApi; } ngOnInit() { } } ================================================ FILE: demo/angular18/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular18/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular18/index.html ================================================ Fullpage ================================================ FILE: demo/angular18/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular18/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular18", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "18.0.0", "@angular/common": "18.0.0", "@angular/compiler": "18.0.0", "@angular/core": "18.0.0", "@angular/forms": "18.0.0", "@angular/platform-browser": "18.0.0", "@angular/platform-browser-dynamic": "18.0.0", "@angular/router": "18.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~7.8.0", "zone.js": "~0.14.0" }, "devDependencies": { "@angular-devkit/build-angular": "^18.2.19", "@angular/cli": "18.0.0", "@angular/compiler-cli": "18.0.0", "@angular-eslint/builder": "^18.0.0", "@angular-eslint/eslint-plugin": "^18.0.0", "@angular-eslint/eslint-plugin-template": "^18.0.0", "@angular-eslint/template-parser": "^18.0.0", "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "eslint": "^8.56.0", "ts-node": "~10.9.0", "tslib": "^2.4.0", "typescript": "5.4" } } ================================================ FILE: demo/angular18/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular18/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular18/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "angularCompilerOptions": { "enableIvy": true, "strictInjectionParameters": true, "strictTemplates": true }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular18/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular18/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: demo/angular19/.gitignore ================================================ # See http://help.github.com/ignore-files/ for more about ignoring files. # compiled output /tmp /out-tsc # dependencies /node_modules /src/node_modules # IDEs and editors /.idea .project .classpath .c9/ *.launch *.angular .settings/ *.sublime-workspace .vscode/* # IDE - VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json # misc /.sass-cache /connect.lock /coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings # System Files .DS_Store Thumbs.db ================================================ FILE: demo/angular19/README.md ================================================ # Examples In order to run the examples you'll have to first install the dependencies: ```shell # install dependencies npm install ``` Then run them with: ```shell # serve examples npm run start ``` A page will open in the browser, where you'll be able to swap between examles by accessing one or anothe URL: - http://localhost:4200/ - http://localhost:4200/dynamicChanges - http://localhost:4200/scrollOverflow - http://localhost:4200/typeDefinitions - http://localhost:4200/dynamicNgFor - http://localhost:4200/usingDirective ================================================ FILE: demo/angular19/angular.json ================================================ { "$schema": "node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular19-fullpage": { "root": "", "sourceRoot": "demo", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "preserveSymlinks": true, "aot": true, "outputPath": "../../dist/demo/angular19", "index": "./index.html", "main": "./main.ts", "polyfills": ["zone.js"], "tsConfig": "./tsconfig.app.json", "assets": [ ], "styles": [ "styles.scss" ], "scripts": [ "node_modules/fullpage.js/dist/fullpage.extensions.min.js" ] }, "configurations": { "production": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "fileReplacements": [ { "replace": "environments/environment.ts", "with": "environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true }, "dev": { "budgets": [ { "type": "anyComponentStyle", "maximumWarning": "6kb" } ], "optimization": false, "outputHashing": "none", "sourceMap": true, "namedChunks": false, "aot": false, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": false } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "buildTarget": "angular19-fullpage:build" }, "configurations": { "production": { "buildTarget": "angular19-fullpage:build:production" }, "dev": { "buildTarget": "angular19-fullpage:build:dev" } }, "defaultConfiguration": "dev" }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "buildTarget": "angular19-fullpage:build" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "tsconfig.app.json" ], "exclude": [ "**/node_modules/**" ] } } } } }, "cli": { "analytics": false } } ================================================ FILE: demo/angular19/app/app-routing.module.ts ================================================ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; const routes: Routes = [ { path: '', component: BasicExampleComponent, pathMatch: 'full' }, { path: 'dynamicChanges', component: DynamicChangesExampleComponent }, { path: 'scrollOverflow', component: ScrollOverflowExampleComponent }, { path: 'typeDefinitions', component: TypeExampleComponent }, { path: 'dynamicNgFor', component: DynamicNgForComponent }, { path: 'usingDirective', component: UsingDirectiveComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule { } ================================================ FILE: demo/angular19/app/app.component.ts ================================================ import { Component } from '@angular/core'; @Component({ selector: 'app-root', standalone: false, template: `` }) export class AppComponent { constructor() {} } ================================================ FILE: demo/angular19/app/app.module.ts ================================================ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BasicExampleComponent } from './examples/basic/basic.component'; import { DynamicChangesExampleComponent } from './examples/dynamic-changes/dynamic-changes.component'; import { ScrollOverflowExampleComponent } from './examples/scrolloverflow/scrolloverflow.component'; import { TypeExampleComponent } from './examples/type-definitions/type.component'; import { DynamicNgForComponent } from './examples/dynamic-ng-for/dynamic-ng-for.component'; import { UsingDirectiveComponent } from './examples/using-directive/using-directive'; import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ declarations: [ AppComponent, BasicExampleComponent, DynamicChangesExampleComponent, ScrollOverflowExampleComponent, TypeExampleComponent, DynamicNgForComponent, UsingDirectiveComponent ], imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ================================================ FILE: demo/angular19/app/examples/basic/basic.component.html ================================================

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular19/app/examples/basic/basic.component.scss ================================================ .section { text-align:center; font-size: 3em; } .examples{ position: fixed; top: 0; left: 0; right: 0; margin: 0; padding: 0; z-index: 999; } .examples li{ display: inline-block; } .examples li a{ color: white; text-decoration: none; font-family: arial; font-size: 0.5em; margin-right: 2em; } .examples li a:hover{ text-decoration: underline; } ================================================ FILE: demo/angular19/app/examples/basic/basic.component.ts ================================================ import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-basic', standalone: false, templateUrl: './basic.component.html', styleUrls: ['./basic.component.scss'] }) export class BasicExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular19/app/examples/dynamic-changes/dynamic-changes.component.html ================================================

Section 1

Section 2

Slide 3.1

Slide 3.2

Slide 3.3

name

Section 4

================================================ FILE: demo/angular19/app/examples/dynamic-changes/dynamic-changes.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular19/app/examples/dynamic-changes/dynamic-changes.component.ts ================================================ import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; @Component({ selector: 'app-dynamic-changes', standalone: false, templateUrl: './dynamic-changes.component.html', styleUrls: ['./dynamic-changes.component.scss'] }) export class DynamicChangesExampleComponent implements OnInit { @ViewChild('fullpageRef') fp_directive: ElementRef; config; fullpageApi; constructor(private renderer: Renderer2) { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } addSection() { // change background color this.config['sectionsColor'] = Array(6).fill(0).map(x => this.randomColor()); // creating the section div const section = this.renderer.createElement('div'); this.renderer.addClass(section, 'section'); this.renderer.setProperty(section, 'innerHTML', '

New Section

'); // adding section this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); } removeLast() { const lastSection = this.fp_directive.nativeElement.lastChild; if (lastSection.isEqualNode(this.fullpageApi.getActiveSection().item)) { this.fullpageApi.moveSectionUp(); } lastSection.remove(); this.fullpageApi.build(); } randomColor() { return '#' + Math.random().toString(16).slice(-3); } } ================================================ FILE: demo/angular19/app/examples/dynamic-ng-for/dynamic-ng-for.component.html ================================================

Section {{section}}

================================================ FILE: demo/angular19/app/examples/dynamic-ng-for/dynamic-ng-for.component.scss ================================================ .section { text-align:center; font-size: 3em; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular19/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts ================================================ import { Component, OnInit, AfterViewInit, ViewChildren, QueryList } from '@angular/core'; @Component({ selector: 'app-dynamic-ng-for', standalone: false, templateUrl: './dynamic-ng-for.component.html', styleUrls: ['./dynamic-ng-for.component.scss'] }) export class DynamicNgForComponent implements OnInit, AfterViewInit { @ViewChildren('sectionRef') sectionRef: QueryList; config: any; fullpageApi: any; sections = [1]; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', navigation: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], }; } ngOnInit() { } ngAfterViewInit() { this.sectionRef.changes.subscribe(() => { this.ngForRendred(); }); } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } add() { const twoDigits = Math.random() * 100; this.sections.push( Math.round(twoDigits) ); } ngForRendred() { console.log('ngFor dom render is done'); this.fullpageApi.build(); } } ================================================ FILE: demo/angular19/app/examples/scrolloverflow/scrolloverflow.component.html ================================================

Section 1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Section 2

Slide 3.1

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.2

Eu nec ferri molestie consequat, vel at alia dolore putant. Labore philosophia ut vix. In vis nostrud interesset appellantur, vis et tation feugiat scripserit. Te nec noster suavitate persecuti. Diceret erroribus cu vix, alii omnes ei sit. Sea an corrumpit patrioque, virtute accumsan nominavi et usu, ex mei dolore vocibus incorrupte. Duo ea saperet tacimates. Sed possim prodesset no, per novum putent doctus ea. Eu mea magna aliquip graecis, pri corpora officiis complectitur ei, lorem saepe consetetur his ad. Meis consulatu ei vis, an altera ocurreret interesset qui. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed. Eu ponderum comprehensam his, case antiopam pri te. Mel ne partem consequat instructior. Ad dicunt malorum sea, ex qui omnes invenire gubergren. Ius cu autem aliquando, pri vide ornatus perpetua an, no has epicuri verterem. Nam at animal pertinax efficiantur. Per alienum torquatos eu. Sed saepe quodsi et, ullum choro definitionem sed et. Ullum elitr comprehensam sed at, sint illum propriae per eu. Eu enim laudem reformidans vel. Pro clita quando ad. Usu te virtute quaestio, ut eruditi tacimates volutpat per. Affert accusamus duo ex, ea pri habeo graece, cu magna dolorum sea. Quas dictas assueverit ad qui, cu duo harum fabulas apeirian, ullum gubergren et sit. Ne cetero recusabo adipiscing quo, cu harum quaestio neglegentur cum. Has tation aliquip ad, virtute volumus definitionem mel ne. Nobis audiam civibus ius at. Ei eum hinc mutat inciderint. Cu maluisset assentior per, graecis ponderum no mel. Eum eu vitae quando gloriatur, cum graece percipitur no, sed errem maiestatis te. Sed porro epicuri te, ad nam malorum verterem. Ea zril aliquip euismod sed.

Slide 3.3

Section 4

================================================ FILE: demo/angular19/app/examples/scrolloverflow/scrolloverflow.component.scss ================================================ .section { text-align:center; font-size: 3em; } .section p{ width: 600px; margin: 0 auto; } #menu li { display:inline-block; margin: 10px; color: #000; background:#fff; background: rgba(255,255,255, 0.5); -webkit-border-radius: 10px; border-radius: 10px; } #menu li.active{ background:#666; background: rgba(0,0,0, 0.5); color: #fff; } #menu li a{ text-decoration:none; color: #000; } #menu li.active a:hover{ color: #000; } #menu li:hover{ background: rgba(255,255,255, 0.8); } #menu li a, #menu li.active a{ padding: 9px 18px; display:block; } #menu li.active a{ color: #fff; } #menu{ position:fixed; top:0; left:0; height: 40px; z-index: 70; width: 100%; padding: 0; margin:0; } ================================================ FILE: demo/angular19/app/examples/scrolloverflow/scrolloverflow.component.ts ================================================ import { Component, OnInit} from '@angular/core'; @Component({ selector: 'app-scrolloverflow', standalone: false, templateUrl: './scrolloverflow.component.html', styleUrls: ['./scrolloverflow.component.scss'] }) export class ScrollOverflowExampleComponent implements OnInit { config; fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], // events callback afterLoad: (origin, destination, direction) => { // console.log(destination); }, afterRender: () => { // console.log('afterRender'); }, afterResize: (width, height) => { // console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { // console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular19/app/examples/type-definitions/type.component.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular19/app/examples/type-definitions/type.component.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular19/app/examples/type-definitions/type.component.ts ================================================ import { Component, OnInit } from '@angular/core'; import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-type', standalone: false, templateUrl: './type.component.html', styleUrls: ['./type.component.scss'] }) export class TypeExampleComponent implements OnInit { config: fullpageOptions; fullpageApi: fullpageApi; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', scrollOverflow: true, sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', 'whitesmoke', '#ccddff'], credits: { enabled: false, }, // events callback afterLoad: (origin, destination, direction) => { console.log(destination); }, afterRender: () => { console.log('afterRender'); }, afterResize: (width, height) => { console.log('afterResize' + width + ' ' + height); }, afterSlideLoad: (section, origin, destination, direction) => { console.log(destination); } }; } ngOnInit() { } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ================================================ FILE: demo/angular19/app/examples/using-directive/using-directive.html ================================================

Section 1

Section 2

Slide 2.1

Slide 3.2

Slide 3.3

Section 4

================================================ FILE: demo/angular19/app/examples/using-directive/using-directive.scss ================================================ .section { text-align:center; font-size: 3em; } ================================================ FILE: demo/angular19/app/examples/using-directive/using-directive.ts ================================================ import { AfterViewInit, Component, OnInit, ViewChild, ViewChildren } from '@angular/core'; import { FullpageDirective} from '@fullpage/angular-fullpage'; import { fullpageOptions } from 'fullpage.js/dist/fullpage.extensions.min'; @Component({ selector: 'app-using-directive', standalone: false, templateUrl: './using-directive.html', styleUrls: ['./using-directive.scss'], }) export class UsingDirectiveComponent implements OnInit, AfterViewInit { config: fullpageOptions; fullpageApi; @ViewChild(FullpageDirective) fullpageDirective: FullpageDirective; constructor() { // this is just an example => for more details on config please visit fullPage.js docs this.config = { licenseKey: 'asdf', sectionsColor: ['#7BAABE', 'whitesmoke', '#7BAABE', 'whitesmoke', '#7BAABE'], anchors: ['p1', 'p2', 'p3', 'p4', 'p5'], navigation: true, credits: { enabled: false, }, }; } ngAfterViewInit() { this.fullpageApi = this.fullpageDirective.fullpageApi; } ngOnInit() { } } ================================================ FILE: demo/angular19/environments/environment.prod.ts ================================================ export const environment = { production: true }; ================================================ FILE: demo/angular19/environments/environment.ts ================================================ export const environment = { production: false }; ================================================ FILE: demo/angular19/index.html ================================================ Fullpage ================================================ FILE: demo/angular19/main.ts ================================================ import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); ================================================ FILE: demo/angular19/package.json ================================================ { "name": "@fullpage/angular-fullpage-demo-angular19", "version": "0.0.1", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "@angular/animations": "19.0.0", "@angular/common": "19.0.0", "@angular/compiler": "19.0.0", "@angular/core": "19.0.0", "@angular/forms": "19.0.0", "@angular/platform-browser": "19.0.0", "@angular/platform-browser-dynamic": "19.0.0", "@angular/router": "19.0.0", "@fullpage/angular-fullpage": "0.1.9", "fullpage.js": "^4.0.37", "rxjs": "~7.8.0", "zone.js": "~0.15.0" }, "devDependencies": { "@angular-devkit/build-angular": "^19.2.11", "@angular/cli": "19.0.0", "@angular/compiler-cli": "19.0.0", "@angular-eslint/builder": "^19.0.0", "@angular-eslint/eslint-plugin": "^19.0.0", "@angular-eslint/eslint-plugin-template": "^19.0.0", "@angular-eslint/template-parser": "^19.0.0", "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^7.0.0", "eslint": "^8.56.0", "ts-node": "~10.9.0", "tslib": "^2.4.0", "typescript": "~5.5.0" } } ================================================ FILE: demo/angular19/polyfills.ts ================================================ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported after ZoneJS that should be loaded before your main * file. * * The current setup is for so-called "evergreen" browsers; the last versions of browsers that * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. * * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html */ /*************************************************************************************************** * BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ // import 'core-js/es6/symbol'; // import 'core-js/es6/object'; // import 'core-js/es6/function'; // import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-float'; // import 'core-js/es6/number'; // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; // import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. // import 'core-js/es7/reflect'; /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`. /** * By default, zone.js will patch all possible macroTask and DomEvents * user can disable parts of macroTask/DomEvents patch by setting following flags */ // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames /* * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js * with the following flag, it will bypass `zone.js` patch for IE/Edge */ // (window as any).__Zone_enable_cross_context_check = true; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ import 'zone.js/dist/zone'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS */ ================================================ FILE: demo/angular19/styles.scss ================================================ /* You can add global styles to this file, and also import other style files */ @import url(~fullpage.js/dist/fullpage.min.css); // change default css .fp-controlArrow { padding: 0 1%; } ================================================ FILE: demo/angular19/tsconfig.app.json ================================================ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "angularCompilerOptions": { "enableIvy": true, "strictInjectionParameters": true, "strictTemplates": true }, "files": [ "main.ts", "polyfills.ts" ], "exclude": [ "test.ts", "**/*.spec.ts", ] } ================================================ FILE: demo/angular19/tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es2022", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2022", "dom" ], "paths": { } } } ================================================ FILE: demo/angular19/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "app", "camelCase" ], "component-selector": [ true, "element", "app", "kebab-case" ] } } ================================================ FILE: dist/@fullpage/angular-fullpage/README.md ================================================ # Angular fullpage ![preview](https://alvarotrigo.com/angular-fullpage/imgs/angular-fullpage-wrapper.png?v=2)

Official Angular wrapper for the fullpage.js library.

angular-fullpage version

- [Demo online](https://alvarotrigo.com/angular-fullpage/) | [Stackblitz](https://stackblitz.com/edit/angular-nqsqwk) - [fullpage.js Extensions](https://alvarotrigo.com/fullPage/extensions/) - Brought by [@imac2](https://twitter.com/imac2) thanks to [Vong Panha Huot ](https://github.com/vh13294). ## Table of Contents - [Installation](https://github.com/alvarotrigo/angular-fullpage#installation) - [License](https://github.com/alvarotrigo/angular-fullpage#license) - [Usage](https://github.com/alvarotrigo/angular-fullpage#usage) - [Use extensions](https://github.com/alvarotrigo/angular-fullpage#use-extensions) - [Use scrolloverflow](https://github.com/alvarotrigo/angular-fullpage#use-of-scrolloverflow) - [Dynamic changes](https://github.com/alvarotrigo/angular-fullpage#dynamic-changes) - [Examples](https://github.com/alvarotrigo/angular-fullpage#examples) - [Contributing](https://github.com/alvarotrigo/angular-fullpage#contributing) - [Resources](https://github.com/alvarotrigo/angular-fullpage#resources) ## Installation ```shell npm install @fullpage/angular-fullpage ``` This will install the Angular wrapper as well as [fullpage.js](https://github.com/alvarotrigo/fullPage.js/) library. ## License ### Non open source license If you want to use angular-fullpage to develop non open sourced sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Which means, you won't have to change your whole application source code to an open source license. [Purchase a Fullpage Commercial License](https://alvarotrigo.com/fullPage/pricing/). ### Open source license If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use fullPage under the terms of the GPLv3. **The credit comments in the JavaScript and CSS files should be kept intact** (even after combination or minification) [Read more about fullPage's license](https://alvarotrigo.com/fullPage/pricing/). ## Usage ```typescript // app.module.ts import { AngularFullpageModule } from '@fullpage/angular-fullpage'; @NgModule({ imports: [ BrowserModule, AppRoutingModule, AngularFullpageModule //*** added ] }) ``` You should import the fullpage.js stylesheet on your `style.scss` or `component.scss`: ```scss /* styles.scss or app.component.scss */ @import url(~fullpage.js/dist/fullpage.min.css); ``` ```css /* standard css */ @import '~fullpage.js/dist/fullpage.min.css'; ``` Then use the directive on your component: ```typescript // app.component.ts export class AppComponent { config: any; fullpageApi: any; constructor() { // for more details on config options please visit fullPage.js docs this.config = { // fullpage options licenseKey: 'YOUR LICENSE KEY HERE', anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'], menu: '#menu', // fullpage callbacks afterResize: () => { console.log("After resize"); }, afterLoad: (origin, destination, direction) => { console.log(origin.index); } }; } getRef(fullPageRef) { this.fullpageApi = fullPageRef; } } ``` You can optionally import types: ```typescript import { fullpageOptions, fullpageApi } from 'fullpage.js/dist/fullpage.extensions.min'; config: fullpageOptions; fullpageApi: fullpageApi; ``` Example of HTML: ```html
Some section1
Some section2
Slide 2.1
Slide 2.2
Slide 2.3
Some section4
``` ### Use extensions In order to make use of [fullpage.js extension](https://alvarotrigo.com/fullPage/extensions/) you'll have to add the extension file to `angular.json`. For example, if we want to use the [`scrollHorizontally`](https://alvarotrigo.com/fullPage/extensions/scroll-horizontally.html) extension we will have to add the path to our `fullpage.scrollHorizontally.min.js` file on the `scripts` array: ```json "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ "src/styles.css" ], "scripts": [ "src/assets/fullpage.scrollHorizontally.min.js" ], ``` Then pass the required options to fullPage.js. In this case `scrollHorizontally:true`. ## Dynamic Changes If you want to update fullPage.js with new changes in the DOM call the `build()` method after making those changes. An example can be seen on the [dynamic-changes example](https://github.com/alvarotrigo/angular-fullpage/blob/master/demo/app/examples/dynamic-changes/dynamic-changes.component.ts#L46): ```javacript this.renderer.appendChild(this.fp_directive.nativeElement, section); this.fullpageApi.build(); // <-- here ``` An example for *ngFor can be seen on the [dynamic-changes-with-ngFor example](https://github.com/alvarotrigo/angular-fullpage/blob/master/demo/app/examples/dynamic-ng-for/dynamic-ng-for.component.ts#L45): ```html

Section {{section}}

``` ## Methods fullPage.js contains many [methods](https://alvarotrigo.com/fullPage/docs/#methods). You can access them through the `fullpageApi` reference that you get from the `(ref)` output event. For example: ```typescript // In your component fullpageApi: any; getRef(fullPageRef) { this.fullpageApi = fullPageRef; } // Then you can use any method like: moveSectionDown() { this.fullpageApi.moveSectionDown(); } ``` ## Callbacks You can define callbacks in the `config` object when initializing fullPage. These callbacks will be triggered at the appropriate times during fullPage's lifecycle. For example: ```typescript config = { afterLoad: (origin, destination, direction) => { console.log('Section loaded:', destination.index); }, onLeave: (origin, destination, direction) => { console.log('Leaving section:', origin.index); } }; ``` All available callbacks can be found in the [fullPage.js documentation](https://alvarotrigo.com/fullPage/docs/#callbacks). ## Examples You can check some full examples on the [`demo` folder](https://github.com/alvarotrigo/angular-fullpage/tree/master/demo) and on the [examples page](https://alvarotrigo.com/fullPage/examples). ## Contributing Found an issue? Have an idea? Check out the [Contributing](https://github.com/alvarotrigo/angular-fullpage/blob/master/CONTRIBUTING.md) guide and open a PR ## Resources - [Wordpress theme](https://alvarotrigo.com/fullPage/utils/wordpress.html) - [fullpage.js Extensions](https://alvarotrigo.com/fullPage/extensions/) - [CSS Easing Animation Tool - Matthew Lein](http://matthewlein.com/ceaser/) (useful to define the `easingcss3` value) - [fullPage.js unpakg CDN](https://unpkg.com/fullpage.js) - [fullPage.js jsDelivr CDN](http://www.jsdelivr.com/#!jquery.fullpage) - [fullPage.js cdnJS CDN](https://cdnjs.com/libraries/fullPage.js) - [fullPage.js documentation](https://github.com/alvarotrigo/fullPage.js) ================================================ FILE: dist/@fullpage/angular-fullpage/bundles/fullpage-angular-fullpage.umd.js ================================================ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('@fullpage/angular-fullpage', ['exports', '@angular/core', '@angular/common'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.fullpage = global.fullpage || {}, global.fullpage["angular-fullpage"] = {}), global.ng.core, global.ng.common)); })(this, (function (exports, i0, common) { 'use strict'; function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } var i0__namespace = /*#__PURE__*/_interopNamespace(i0); var FullpageDirective = /** @class */ (function () { function FullpageDirective(platformId, renderer) { this.platformId = platformId; this.renderer = renderer; this.ref = new i0.EventEmitter(); } FullpageDirective.prototype.ngAfterViewInit = function () { if (common.isPlatformBrowser(this.platformId)) { this.initFullpage(); } if (common.isPlatformServer(this.platformId)) { // server side code } }; FullpageDirective.prototype.initFullpage = function () { console.log("fullpage", fullpage); this.fullpageApi = new fullpage('#' + this.id, this.options); this.addBuildFunction(); this.ref.emit(this.fullpageApi); }; FullpageDirective.prototype.addBuildFunction = function () { var _this = this; this.fullpageApi.build = function () { var activeSection = _this.fullpageApi.getActiveSection(); var activeSlide = _this.fullpageApi.getActiveSlide(); _this.destroyFullpage(); if (activeSection) { _this.renderer.addClass(activeSection.item, 'active'); } if (activeSlide) { _this.renderer.addClass(activeSlide.item, 'active'); } _this.initFullpage(); }; }; FullpageDirective.prototype.destroyFullpage = function () { if (typeof this.fullpageApi !== 'undefined' && typeof this.fullpageApi.destroy !== 'undefined') { this.fullpageApi.destroy('all'); } }; FullpageDirective.prototype.ngOnDestroy = function () { this.destroyFullpage(); }; return FullpageDirective; }()); /** @nocollapse */ FullpageDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: FullpageDirective, deps: [{ token: i0.PLATFORM_ID }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive }); /** @nocollapse */ FullpageDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: FullpageDirective, selector: "[fullpage]", inputs: { id: "id", options: "options" }, outputs: { ref: "ref" }, ngImport: i0__namespace }); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: FullpageDirective, decorators: [{ type: i0.Directive, args: [{ selector: '[fullpage]', }] }], ctorParameters: function () { return [{ type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID] }] }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { id: [{ type: i0.Input }], options: [{ type: i0.Input }], ref: [{ type: i0.Output }] } }); var AnchorLinkDirective = /** @class */ (function () { function AnchorLinkDirective() { } AnchorLinkDirective.prototype.onClick = function (event) { if (this.href.length > 0 && this.href[0] === '#') { event.preventDefault(); window.location.hash = this.href; } }; return AnchorLinkDirective; }()); /** @nocollapse */ AnchorLinkDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AnchorLinkDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive }); /** @nocollapse */ AnchorLinkDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: AnchorLinkDirective, selector: "[href]", inputs: { href: "href" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0__namespace }); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AnchorLinkDirective, decorators: [{ type: i0.Directive, args: [{ selector: '[href]' }] }], propDecorators: { href: [{ type: i0.Input }], onClick: [{ type: i0.HostListener, args: ['click', ['$event']] }] } }); var AngularFullpageModule = /** @class */ (function () { function AngularFullpageModule() { } return AngularFullpageModule; }()); /** @nocollapse */ AngularFullpageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AngularFullpageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule }); /** @nocollapse */ AngularFullpageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AngularFullpageModule, declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }); /** @nocollapse */ AngularFullpageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AngularFullpageModule, imports: [[]] }); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0__namespace, type: AngularFullpageModule, decorators: [{ type: i0.NgModule, args: [{ imports: [], declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }] }] }); /* * Public API Surface of angular-fullpage */ /** * Generated bundle index. Do not edit. */ exports.AnchorLinkDirective = AnchorLinkDirective; exports.AngularFullpageModule = AngularFullpageModule; exports.FullpageDirective = FullpageDirective; Object.defineProperty(exports, '__esModule', { value: true }); })); //# sourceMappingURL=fullpage-angular-fullpage.umd.js.map ================================================ FILE: dist/@fullpage/angular-fullpage/esm2015/fullpage-angular-fullpage.js ================================================ /** * Generated bundle index. Do not edit. */ export * from './public_api'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVsbHBhZ2UtYW5ndWxhci1mdWxscGFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbmd1bGFyLWZ1bGxwYWdlL2Z1bGxwYWdlLWFuZ3VsYXItZnVsbHBhZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ== ================================================ FILE: dist/@fullpage/angular-fullpage/esm2015/lib/angular-fullpage.module.js ================================================ import { NgModule } from '@angular/core'; import { FullpageDirective, AnchorLinkDirective } from './fullpage.directive'; import * as i0 from "@angular/core"; export class AngularFullpageModule { } /** @nocollapse */ AngularFullpageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); /** @nocollapse */ AngularFullpageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }); /** @nocollapse */ AngularFullpageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, imports: [[]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, decorators: [{ type: NgModule, args: [{ imports: [], declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }] }] }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1mdWxscGFnZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYW5ndWxhci1mdWxscGFnZS9saWIvYW5ndWxhci1mdWxscGFnZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7QUFPOUUsTUFBTSxPQUFPLHFCQUFxQjs7cUlBQXJCLHFCQUFxQjtzSUFBckIscUJBQXFCLGlCQUhqQixpQkFBaUIsRUFBRSxtQkFBbUIsYUFDM0MsaUJBQWlCLEVBQUUsbUJBQW1CO3NJQUVyQyxxQkFBcUIsWUFKdkIsRUFBRTsyRkFJQSxxQkFBcUI7a0JBTGpDLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLEVBQUU7b0JBQ1gsWUFBWSxFQUFFLENBQUMsaUJBQWlCLEVBQUUsbUJBQW1CLENBQUM7b0JBQ3RELE9BQU8sRUFBRSxDQUFDLGlCQUFpQixFQUFFLG1CQUFtQixDQUFDO2lCQUNsRCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBGdWxscGFnZURpcmVjdGl2ZSwgQW5jaG9yTGlua0RpcmVjdGl2ZSB9IGZyb20gJy4vZnVsbHBhZ2UuZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW10sXG4gIGRlY2xhcmF0aW9uczogW0Z1bGxwYWdlRGlyZWN0aXZlLCBBbmNob3JMaW5rRGlyZWN0aXZlXSxcbiAgZXhwb3J0czogW0Z1bGxwYWdlRGlyZWN0aXZlLCBBbmNob3JMaW5rRGlyZWN0aXZlXVxufSlcbmV4cG9ydCBjbGFzcyBBbmd1bGFyRnVsbHBhZ2VNb2R1bGUgeyB9XG4iXX0= ================================================ FILE: dist/@fullpage/angular-fullpage/esm2015/lib/fullpage.directive.js ================================================ import { Directive, Input, Output, EventEmitter, Renderer2, HostListener, PLATFORM_ID, Inject } from '@angular/core'; import { isPlatformBrowser, isPlatformServer } from '@angular/common'; import * as i0 from "@angular/core"; export class FullpageDirective { constructor(platformId, renderer) { this.platformId = platformId; this.renderer = renderer; this.ref = new EventEmitter(); } ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { this.initFullpage(); } if (isPlatformServer(this.platformId)) { // server side code } } initFullpage() { console.log("fullpage", fullpage); this.fullpageApi = new fullpage('#' + this.id, this.options); this.addBuildFunction(); this.ref.emit(this.fullpageApi); } addBuildFunction() { this.fullpageApi.build = () => { const activeSection = this.fullpageApi.getActiveSection(); const activeSlide = this.fullpageApi.getActiveSlide(); this.destroyFullpage(); if (activeSection) { this.renderer.addClass(activeSection.item, 'active'); } if (activeSlide) { this.renderer.addClass(activeSlide.item, 'active'); } this.initFullpage(); }; } destroyFullpage() { if (typeof this.fullpageApi !== 'undefined' && typeof this.fullpageApi.destroy !== 'undefined') { this.fullpageApi.destroy('all'); } } ngOnDestroy() { this.destroyFullpage(); } } /** @nocollapse */ FullpageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: FullpageDirective, deps: [{ token: PLATFORM_ID }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); /** @nocollapse */ FullpageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: FullpageDirective, selector: "[fullpage]", inputs: { id: "id", options: "options" }, outputs: { ref: "ref" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: FullpageDirective, decorators: [{ type: Directive, args: [{ selector: '[fullpage]', }] }], ctorParameters: function () { return [{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID] }] }, { type: i0.Renderer2 }]; }, propDecorators: { id: [{ type: Input }], options: [{ type: Input }], ref: [{ type: Output }] } }); export class AnchorLinkDirective { onClick(event) { if (this.href.length > 0 && this.href[0] === '#') { event.preventDefault(); window.location.hash = this.href; } } } /** @nocollapse */ AnchorLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AnchorLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); /** @nocollapse */ AnchorLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: AnchorLinkDirective, selector: "[href]", inputs: { href: "href" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AnchorLinkDirective, decorators: [{ type: Directive, args: [{ selector: '[href]' }] }], propDecorators: { href: [{ type: Input }], onClick: [{ type: HostListener, args: ['click', ['$event']] }] } }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVsbHBhZ2UuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FuZ3VsYXItZnVsbHBhZ2UvbGliL2Z1bGxwYWdlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBNEIsTUFBTSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0ksT0FBTyxFQUFFLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7O0FBT3RFLE1BQU0sT0FBTyxpQkFBaUI7SUFNNUIsWUFDK0IsVUFBa0IsRUFDdkMsUUFBbUI7UUFERSxlQUFVLEdBQVYsVUFBVSxDQUFRO1FBQ3ZDLGFBQVEsR0FBUixRQUFRLENBQVc7UUFMbkIsUUFBRyxHQUFHLElBQUksWUFBWSxFQUFFLENBQUM7SUFNL0IsQ0FBQztJQUVMLGVBQWU7UUFDYixJQUFJLGlCQUFpQixDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUN0QyxJQUFJLENBQUMsWUFBWSxFQUFFLENBQUM7U0FDckI7UUFDRCxJQUFJLGdCQUFnQixDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUNyQyxtQkFBbUI7U0FDcEI7SUFDSCxDQUFDO0lBRUQsWUFBWTtRQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsVUFBVSxFQUFFLFFBQVEsQ0FBQyxDQUFDO1FBQ2xDLElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxRQUFRLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQzdELElBQUksQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDO1FBQ3hCLElBQUksQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUNsQyxDQUFDO0lBRUQsZ0JBQWdCO1FBQ2QsSUFBSSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEdBQUcsR0FBRyxFQUFFO1lBQzVCLE1BQU0sYUFBYSxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQztZQUMxRCxNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsV0FBVyxDQUFDLGNBQWMsRUFBRSxDQUFDO1lBRXRELElBQUksQ0FBQyxlQUFlLEVBQUUsQ0FBQztZQUV2QixJQUFJLGFBQWEsRUFBRTtnQkFDakIsSUFBSSxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsYUFBYSxDQUFDLElBQUksRUFBRSxRQUFRLENBQUMsQ0FBQzthQUN0RDtZQUVELElBQUksV0FBVyxFQUFFO2dCQUNmLElBQUksQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxJQUFJLEVBQUUsUUFBUSxDQUFDLENBQUM7YUFDcEQ7WUFFRCxJQUFJLENBQUMsWUFBWSxFQUFFLENBQUM7UUFDdEIsQ0FBQyxDQUFDO0lBQ0osQ0FBQztJQUVELGVBQWU7UUFDYixJQUFJLE9BQU8sSUFBSSxDQUFDLFdBQVcsS0FBSyxXQUFXLElBQUksT0FBTyxJQUFJLENBQUMsV0FBVyxDQUFDLE9BQU8sS0FBSyxXQUFXLEVBQUU7WUFDOUYsSUFBSSxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7U0FDakM7SUFDSCxDQUFDO0lBRUQsV0FBVztRQUNULElBQUksQ0FBQyxlQUFlLEVBQUUsQ0FBQztJQUN6QixDQUFDOztpSUF0RFUsaUJBQWlCLGtCQU9sQixXQUFXO3FIQVBWLGlCQUFpQjsyRkFBakIsaUJBQWlCO2tCQUg3QixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxZQUFZO2lCQUN2QjswREFRNEMsTUFBTTswQkFBOUMsTUFBTTsyQkFBQyxXQUFXO29FQU5aLEVBQUU7c0JBQVYsS0FBSztnQkFDRyxPQUFPO3NCQUFmLEtBQUs7Z0JBQ0ksR0FBRztzQkFBWixNQUFNOztBQXlEVCxNQUFNLE9BQU8sbUJBQW1CO0lBR0ssT0FBTyxDQUFDLEtBQUs7UUFDOUMsSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sR0FBRyxDQUFDLElBQUksSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsS0FBSyxHQUFHLEVBQUU7WUFDaEQsS0FBSyxDQUFDLGNBQWMsRUFBRSxDQUFDO1lBQ3ZCLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7U0FDbEM7SUFDSCxDQUFDOzttSUFSVSxtQkFBbUI7dUhBQW5CLG1CQUFtQjsyRkFBbkIsbUJBQW1CO2tCQUgvQixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRyxRQUFRO2lCQUNwQjs4QkFFVSxJQUFJO3NCQUFaLEtBQUs7Z0JBRTZCLE9BQU87c0JBQXpDLFlBQVk7dUJBQUMsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGlyZWN0aXZlLCBJbnB1dCwgQWZ0ZXJWaWV3SW5pdCwgT25EZXN0cm95LCBPdXRwdXQsIEV2ZW50RW1pdHRlciwgUmVuZGVyZXIyLCBIb3N0TGlzdGVuZXIsIFBMQVRGT1JNX0lELCBJbmplY3QgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IGlzUGxhdGZvcm1Ccm93c2VyLCBpc1BsYXRmb3JtU2VydmVyIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuZGVjbGFyZSBsZXQgZnVsbHBhZ2U6IGFueTtcblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yOiAnW2Z1bGxwYWdlXScsXG59KVxuZXhwb3J0IGNsYXNzIEZ1bGxwYWdlRGlyZWN0aXZlIGltcGxlbWVudHMgQWZ0ZXJWaWV3SW5pdCwgT25EZXN0cm95IHtcbiAgQElucHV0KCkgaWQ7XG4gIEBJbnB1dCgpIG9wdGlvbnM7XG4gIEBPdXRwdXQoKSByZWYgPSBuZXcgRXZlbnRFbWl0dGVyKCk7XG4gIGZ1bGxwYWdlQXBpO1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIEBJbmplY3QoUExBVEZPUk1fSUQpIHByaXZhdGUgcGxhdGZvcm1JZDogT2JqZWN0LFxuICAgIHByaXZhdGUgcmVuZGVyZXI6IFJlbmRlcmVyMlxuICApIHsgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBpZiAoaXNQbGF0Zm9ybUJyb3dzZXIodGhpcy5wbGF0Zm9ybUlkKSkge1xuICAgICAgdGhpcy5pbml0RnVsbHBhZ2UoKTtcbiAgICB9XG4gICAgaWYgKGlzUGxhdGZvcm1TZXJ2ZXIodGhpcy5wbGF0Zm9ybUlkKSkge1xuICAgICAgLy8gc2VydmVyIHNpZGUgY29kZVxuICAgIH1cbiAgfVxuXG4gIGluaXRGdWxscGFnZSgpIHtcbiAgICBjb25zb2xlLmxvZyhcImZ1bGxwYWdlXCIsIGZ1bGxwYWdlKTtcbiAgICB0aGlzLmZ1bGxwYWdlQXBpID0gbmV3IGZ1bGxwYWdlKCcjJyArIHRoaXMuaWQsIHRoaXMub3B0aW9ucyk7XG4gICAgdGhpcy5hZGRCdWlsZEZ1bmN0aW9uKCk7XG4gICAgdGhpcy5yZWYuZW1pdCh0aGlzLmZ1bGxwYWdlQXBpKTtcbiAgfVxuXG4gIGFkZEJ1aWxkRnVuY3Rpb24oKSB7XG4gICAgdGhpcy5mdWxscGFnZUFwaS5idWlsZCA9ICgpID0+IHtcbiAgICAgIGNvbnN0IGFjdGl2ZVNlY3Rpb24gPSB0aGlzLmZ1bGxwYWdlQXBpLmdldEFjdGl2ZVNlY3Rpb24oKTtcbiAgICAgIGNvbnN0IGFjdGl2ZVNsaWRlID0gdGhpcy5mdWxscGFnZUFwaS5nZXRBY3RpdmVTbGlkZSgpO1xuXG4gICAgICB0aGlzLmRlc3Ryb3lGdWxscGFnZSgpO1xuXG4gICAgICBpZiAoYWN0aXZlU2VjdGlvbikge1xuICAgICAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKGFjdGl2ZVNlY3Rpb24uaXRlbSwgJ2FjdGl2ZScpO1xuICAgICAgfVxuXG4gICAgICBpZiAoYWN0aXZlU2xpZGUpIHtcbiAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhhY3RpdmVTbGlkZS5pdGVtLCAnYWN0aXZlJyk7XG4gICAgICB9XG5cbiAgICAgIHRoaXMuaW5pdEZ1bGxwYWdlKCk7XG4gICAgfTtcbiAgfVxuXG4gIGRlc3Ryb3lGdWxscGFnZSgpIHtcbiAgICBpZiAodHlwZW9mIHRoaXMuZnVsbHBhZ2VBcGkgIT09ICd1bmRlZmluZWQnICYmIHR5cGVvZiB0aGlzLmZ1bGxwYWdlQXBpLmRlc3Ryb3kgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICB0aGlzLmZ1bGxwYWdlQXBpLmRlc3Ryb3koJ2FsbCcpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KCkge1xuICAgIHRoaXMuZGVzdHJveUZ1bGxwYWdlKCk7XG4gIH1cbn1cblxuQERpcmVjdGl2ZSh7XG4gIHNlbGVjdG9yIDogJ1tocmVmXSdcbn0pXG5leHBvcnQgY2xhc3MgQW5jaG9yTGlua0RpcmVjdGl2ZSB7XG4gIEBJbnB1dCgpIGhyZWY6IHN0cmluZztcblxuICBASG9zdExpc3RlbmVyKCdjbGljaycsIFsnJGV2ZW50J10pIG9uQ2xpY2soZXZlbnQpIHtcbiAgICBpZiAodGhpcy5ocmVmLmxlbmd0aCA+IDAgJiYgdGhpcy5ocmVmWzBdID09PSAnIycpIHtcbiAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICB3aW5kb3cubG9jYXRpb24uaGFzaCA9IHRoaXMuaHJlZjtcbiAgICB9XG4gIH1cbn1cbiJdfQ== ================================================ FILE: dist/@fullpage/angular-fullpage/esm2015/lib/fullpage.interface.js ================================================ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVsbHBhZ2UuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FuZ3VsYXItZnVsbHBhZ2UvbGliL2Z1bGxwYWdlLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZGVjbGFyZSBtb2R1bGUgJ2Z1bGxwYWdlLmpzL2Rpc3QvZnVsbHBhZ2UuZXh0ZW5zaW9ucy5taW4nIHtcbiAgICBleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihjb250YWluZXJTZWxlY3Rvcjogc3RyaW5nLCBvcHRpb25zOiBmdWxscGFnZU9wdGlvbnMpOiB2b2lkO1xuICAgXG4gICAgXG4gICAgZXhwb3J0IHR5cGUgSXRlbSA9IHtcbiAgICAgICAgYW5jaG9yOiBzdHJpbmcgfCBudW1iZXIsXG4gICAgICAgIGluZGV4OiBudW1iZXIsXG4gICAgICAgIGl0ZW06IEhUTUxFbGVtZW50LFxuICAgICAgICBpc0ZpcnN0OiBib29sZWFuLFxuICAgICAgICBpc0xhc3Q6IGJvb2xlYW5cbiAgICB9O1xuXG4gICAgdHlwZSBEcmFnQW5kTW92ZSA9IGJvb2xlYW4gfCBcInZlcnRpY2FsXCIgfCBcImhvcml6b250YWxcIiB8IFwiZmluZ2Vyc29ubHlcIiB8IFwibW91c2Vvbmx5XCI7XG4gICAgdHlwZSBGYWRpbmdFZmZlY3QgPSBib29sZWFuIHwgXCJzZWN0aW9uc1wiIHwgXCJzbGlkZXNcIjtcbiAgICB0eXBlIEludGVybG9ja2VkU2xpZGVzID0gYm9vbGVhbiB8IEFycmF5PG51bWJlcj47XG4gICAgdHlwZSBiaWdTZWN0aW9uc0Rlc3RpbmF0aW9uID0gXCJ0b3BcIiB8IFwiYm90dG9tXCIgfCBudWxsO1xuICAgIHR5cGUgUGFyYWxsYXggPSBib29sZWFuIHwgXCJzZWN0aW9uc1wiIHwgXCJzbGlkZXNcIjtcbiAgICB0eXBlIERyb3BFZmZlY3QgPSBib29sZWFuIHwgXCJzZWN0aW9uc1wiIHwgXCJzbGlkZXNcIjtcbiAgICB0eXBlIFdhdGVyRWZmZWN0ID0gYm9vbGVhbiB8IFwic2VjdGlvbnNcIiB8IFwic2xpZGVzXCI7XG4gICAgdHlwZSBUcmlnZ2VyID0gXCJzbGlkZUFycm93XCIgfCBcInZlcnRpY2FsTmF2XCIgfCBcImhvcml6b250YWxOYXZcIiB8IFwia2V5ZG93blwiIHwgXCJ3aGVlbFwiIHwgXCJtZW51XCI7XG4gICAgdHlwZSBTY3JvbGxPdmVyZmxvd1Jlc2V0ID0gYm9vbGVhbiB8IFwic2xpZGVzXCIgfCBcInNlY3Rpb25zXCI7XG4gICAgdHlwZSBXYXRlckVmZmVjdE9wdGlvbnMgPSB7XG4gICAgICAgIGFuaW1hdGVDb250ZW50OiBib29sZWFuXG4gICAgICAgIGFuaW1hdGVPbk1vdXNlTW92ZTogYm9vbGVhblxuICAgIH07XG4gICAgdHlwZSBDYXJkc09wdGlvbnMgPSB7XG4gICAgICAgIHBlcnNwZWN0aXZlOiBudW1iZXJcbiAgICAgICAgZmFkZUNvbnRlbnQ6IGJvb2xlYW5cbiAgICAgICAgZmFkZUJhY2tncm91bmQ6IGJvb2xlYW5cbiAgICB9O1xuICAgIHR5cGUgUGFyYWxsYXhPcHRpb25zID0ge1xuICAgICAgICBwZXJjZW50YWdlPzogbnVtYmVyXG4gICAgICAgIHByb3BlcnR5PzogXCJ0cmFuc2xhdGVcIiB8IFwiYmFja2dyb3VuZFwiXG4gICAgICAgIHR5cGU/OiBcInJldmVhbFwiIHwgXCJjb3ZlclwiXG4gICAgfTtcblxuICAgIHR5cGUgQ3JlZGl0cyA9IHtcbiAgICAgICAgZW5hYmxlZD86IGJvb2xlYW4sXG4gICAgICAgIGxhYmVsPzogc3RyaW5nLFxuICAgICAgICBwb3NpdGlvbj86IFwibGVmdFwiIHwgXCJyaWdodFwiXG4gICAgfVxuXG4gICAgZXhwb3J0IGludGVyZmFjZSBmdWxscGFnZU9wdGlvbnMge1xuICAgICAgICBhbmNob3JzPzogc3RyaW5nW11cbiAgICAgICAgYW5pbWF0ZUFuY2hvcj86IGJvb2xlYW5cbiAgICAgICAgYXV0b1Njcm9sbGluZz86IGJvb2xlYW5cbiAgICAgICAgYmlnU2VjdGlvbnNEZXN0aW5hdGlvbj86IGJpZ1NlY3Rpb25zRGVzdGluYXRpb24gLy90b3AsIGJvdHRvbSwgbnVsbFxuICAgICAgICBjb250aW51b3VzSG9yaXpvbnRhbD86IGJvb2xlYW5cbiAgICAgICAgY29udGludW91c1ZlcnRpY2FsPzogYm9vbGVhblxuICAgICAgICBjb250cm9sQXJyb3dDb2xvcj86IHN0cmluZ1xuICAgICAgICBjb250cm9sQXJyb3dzPzogYm9vbGVhblxuICAgICAgICBjb250cm9sQXJyb3dzSFRNTD86IHN0cmluZ1tdXG4gICAgICAgIGNzczM/OiBib29sZWFuXG4gICAgICAgIGRyYWdBbmRNb3ZlPzogRHJhZ0FuZE1vdmVcbiAgICAgICAgZWFzaW5nPzogc3RyaW5nXG4gICAgICAgIGVhc2luZ2NzczM/OiBzdHJpbmdcbiAgICAgICAgZmFkaW5nRWZmZWN0PzogRmFkaW5nRWZmZWN0XG4gICAgICAgIGZpdFRvU2VjdGlvbj86IGJvb2xlYW5cbiAgICAgICAgZml0VG9TZWN0aW9uRGVsYXk/OiBudW1iZXJcbiAgICAgICAgZml4ZWRFbGVtZW50cz86IHN0cmluZyAvLyAnI2hlYWRlciwgLmZvb3RlcidcbiAgICAgICAgaHlicmlkPzogYm9vbGVhblxuICAgICAgICBpbnRlcmxvY2tlZFNsaWRlcz86IEludGVybG9ja2VkU2xpZGVzXG4gICAgICAgIGtleWJvYXJkU2Nyb2xsaW5nPzogYm9vbGVhblxuICAgICAgICBsYXp5TG9hZGluZz86IGJvb2xlYW5cbiAgICAgICAgb2JzZXJ2ZXI/OiBib29sZWFuXG4gICAgICAgIGxpY2Vuc2VLZXk/OiBzdHJpbmdcbiAgICAgICAgY3JlZGl0czogQ3JlZGl0c1xuICAgICAgICBsb2NrQW5jaG9ycz86IGJvb2xlYW5cbiAgICAgICAgbG9vcEJvdHRvbT86IGJvb2xlYW5cbiAgICAgICAgbG9vcEhvcml6b250YWw/OiBib29sZWFuXG4gICAgICAgIGxvb3BUb3A/OiBib29sZWFuXG4gICAgICAgIG1lbnU/OiBzdHJpbmdcbiAgICAgICAgbmF2aWdhdGlvbj86IGJvb2xlYW5cbiAgICAgICAgbmF2aWdhdGlvblBvc2l0aW9uPzogc3RyaW5nXG4gICAgICAgIG5hdmlnYXRpb25Ub29sdGlwcz86IHN0cmluZ1tdIC8vIFsnZmlyc3RTbGlkZScsICdzZWNvbmRTbGlkZSddXG4gICAgICAgIG5vcm1hbFNjcm9sbEVsZW1lbnRUb3VjaFRocmVzaG9sZD86IG51bWJlclxuICAgICAgICBub3JtYWxTY3JvbGxFbGVtZW50cz86IHN0cmluZyAvLyAnI2VsZW1lbnQxLCAuZWxlbWVudDInLFxuICAgICAgICBvZmZzZXRTZWN0aW9ucz86IGJvb2xlYW5cbiAgICAgICAgcGFkZGluZ0JvdHRvbT86IHN0cmluZ1xuICAgICAgICBwYWRkaW5nVG9wPzogc3RyaW5nXG4gICAgICAgIHBhcmFsbGF4PzogUGFyYWxsYXggLy8gdHJ1ZSwgZmFsc2UsICdzZWN0aW9ucycsICdzbGlkZXMnXG4gICAgICAgIHBhcmFsbGF4T3B0aW9ucz86IFBhcmFsbGF4T3B0aW9uc1xuICAgICAgICByZWNvcmRIaXN0b3J5PzogYm9vbGVhblxuICAgICAgICByZXNldFNsaWRlcnM/OiBib29sZWFuXG4gICAgICAgIHJlc3BvbnNpdmU/OiBudW1iZXJcbiAgICAgICAgcmVzcG9uc2l2ZUhlaWdodD86IG51bWJlclxuICAgICAgICByZXNwb25zaXZlU2xpZGVzPzogYm9vbGVhblxuICAgICAgICByZXNwb25zaXZlV2lkdGg/OiBudW1iZXJcbiAgICAgICAgc2Nyb2xsQmFyPzogYm9vbGVhblxuICAgICAgICBzY3JvbGxIb3Jpem9udGFsbHk/OiBib29sZWFuXG4gICAgICAgIHNjcm9sbE92ZXJmbG93PzogYm9vbGVhblxuICAgICAgICBzY3JvbGxPdmVyZmxvd01hY1N0eWxlPzogYm9vbGVhblxuICAgICAgICBzY3JvbGxPdmVyZmxvd0hhbmRsZXI/OiBhbnlcbiAgICAgICAgc2Nyb2xsT3ZlcmZsb3dSZXNldD86IFNjcm9sbE92ZXJmbG93UmVzZXRcbiAgICAgICAgc2Nyb2xsaW5nU3BlZWQ/OiBudW1iZXJcbiAgICAgICAgZHJvcEVmZmVjdD86IERyb3BFZmZlY3Q7XG4gICAgICAgIGRyb3BFZmZlY3RPcHRpb25zPzogYW55O1xuICAgICAgICB3YXRlckVmZmVjdD86IFdhdGVyRWZmZWN0O1xuICAgICAgICB3YXRlckVmZmVjdE9wdGlvbnM/OiBXYXRlckVmZmVjdE9wdGlvbnM7XG4gICAgICAgIGNhcmRzPzogYm9vbGVhbjtcbiAgICAgICAgY2FyZHNPcHRpb25zPzogQ2FyZHNPcHRpb25zO1xuICAgICAgICBzZWN0aW9uU2VsZWN0b3I/OiBzdHJpbmdcbiAgICAgICAgc2VjdGlvbnNDb2xvcj86IHN0cmluZ1tdXG4gICAgICAgIHNob3dBY3RpdmVUb29sdGlwPzogYm9vbGVhblxuICAgICAgICBzbGlkZVNlbGVjdG9yPzogc3RyaW5nXG4gICAgICAgIHNsaWRlc05hdlBvc2l0aW9uPzogXCJ0b3BcIiB8IFwiYm90dG9tXCJcbiAgICAgICAgc2xpZGVzTmF2aWdhdGlvbj86IGJvb2xlYW5cbiAgICAgICAgdG91Y2hTZW5zaXRpdml0eT86IG51bWJlclxuICAgICAgICB2ZXJ0aWNhbENlbnRlcmVkPzogYm9vbGVhblxuXG4gICAgICAgIC8qIGNhbGxiYWNrIGFuZCBldmVudHMgKi9cbiAgICAgICAgYWZ0ZXJMb2FkPyhvcmlnaW46IEl0ZW0sIGRlc3RpbmF0aW9uOiBJdGVtLCBkaXJlY3Rpb246IHN0cmluZywgdHJpZ2dlcjogVHJpZ2dlcik6IHZvaWRcbiAgICAgICAgYWZ0ZXJSZW5kZXI/KCk6IHZvaWRcbiAgICAgICAgYWZ0ZXJSZXNpemU/KHdpZHRoOiBudW1iZXIsIGhlaWdodDogbnVtYmVyKTogdm9pZFxuICAgICAgICBhZnRlclJlQnVpbGQ/KCk6IHZvaWRcbiAgICAgICAgYWZ0ZXJSZXNwb25zaXZlPyhpc1Jlc3BvbnNpdmU6IGJvb2xlYW4pOiB2b2lkXG4gICAgICAgIGFmdGVyU2xpZGVMb2FkPyhzZWN0aW9uOiBJdGVtLCBvcmlnaW46IEl0ZW0sIGRlc3RpbmF0aW9uOiBJdGVtLCBkaXJlY3Rpb246IHN0cmluZywgdHJpZ2dlcjogVHJpZ2dlcik6IHZvaWRcbiAgICAgICAgb25MZWF2ZT8ob3JpZ2luOiBJdGVtLCBkZXN0aW5hdGlvbjogSXRlbSwgZGlyZWN0aW9uOiBzdHJpbmcsIHRyaWdnZXI6IFRyaWdnZXIpOiB2b2lkXG4gICAgICAgIGJlZm9yZUxlYXZlPyhvcmlnaW46IEl0ZW0sIGRlc3RpbmF0aW9uOiBJdGVtLCBkaXJlY3Rpb246IHN0cmluZywgdHJpZ2dlcjogVHJpZ2dlcik6IHZvaWRcbiAgICAgICAgb25TbGlkZUxlYXZlPyhzZWN0aW9uOiBJdGVtLCBvcmlnaW46IEl0ZW0sIGRlc3RpbmF0aW9uOiBJdGVtLCBkaXJlY3Rpb246IHN0cmluZywgdHJpZ2dlcjogVHJpZ2dlcik6IHZvaWRcbiAgICAgICAgb25TY3JvbGxPdmVyZmxvdz8oc2VjdGlvbjogSXRlbSwgc2xpZGU6IEl0ZW0sIHBvc2l0aW9uOiBudW1iZXIsIGRpcmVjdGlvbjogc3RyaW5nKTogdm9pZFxuXG4gICAgICAgIC8qIGtleXMgZm9yIGV4dGVuc2lvbnMgKi9cbiAgICAgICAgZmFkaW5nRWZmZWN0S2V5Pzogc3RyaW5nXG4gICAgICAgIHJlc3BvbnNpdmVTbGlkZXNLZXk/OiBzdHJpbmdcbiAgICAgICAgY29udGludW91c0hvcml6b250YWxLZXk/OiBzdHJpbmdcbiAgICAgICAgaW50ZXJsb2NrZWRTbGlkZXNLZXk/OiBzdHJpbmdcbiAgICAgICAgc2Nyb2xsSG9yaXpvbnRhbGx5S2V5Pzogc3RyaW5nXG4gICAgICAgIHJlc2V0U2xpZGVyc0tleT86IHN0cmluZ1xuICAgICAgICBvZmZzZXRTZWN0aW9uc0tleT86IHN0cmluZ1xuICAgICAgICBkcmFnQW5kTW92ZUtleT86IHN0cmluZ1xuICAgICAgICBwYXJhbGxheEtleT86IHN0cmluZ1xuICAgICAgICAvKiBlbmQga2V5IHNlY3Rpb25zICovXG4gICAgfVxuXG5cbiAgICBleHBvcnQgaW50ZXJmYWNlIGZ1bGxwYWdlQXBpIHtcbiAgICAgICAgY29udGludW91c0hvcml6b250YWw6IGJvb2xlYW5cbiAgICAgICAgZHJhZ0FuZE1vdmU6IERyYWdBbmRNb3ZlXG4gICAgICAgIGZhZGluZ0VmZmVjdDogRmFkaW5nRWZmZWN0XG4gICAgICAgIGludGVybG9ja2VkU2xpZGVzOiBJbnRlcmxvY2tlZFNsaWRlc1xuICAgICAgICBvZmZzZXRTZWN0aW9uczogYm9vbGVhblxuICAgICAgICBwYXJhbGxheDogUGFyYWxsYXhcbiAgICAgICAgcmVzZXRTbGlkZXJzOiBib29sZWFuXG4gICAgICAgIHJlc3BvbnNpdmVTbGlkZXM6IGJvb2xlYW5cbiAgICAgICAgc2Nyb2xsSG9yaXpvbnRhbGx5OiBib29sZWFuXG4gICAgICAgIHNjcm9sbE92ZXJmbG93UmVzZXQ6IFNjcm9sbE92ZXJmbG93UmVzZXRcbiAgICAgICAgdmVyc2lvbjogc3RyaW5nXG4gICAgICAgIGRlc3Ryb3kodHlwZT86IHN0cmluZyk6IHZvaWRcbiAgICAgICAgZml0VG9TZWN0aW9uKCk6IHZvaWRcbiAgICAgICAgZ2V0QWN0aXZlU2VjdGlvbigpOiBJdGVtXG4gICAgICAgIGdldEFjdGl2ZVNsaWRlKCk6IEl0ZW1cbiAgICAgICAgZ2V0RnVsbHBhZ2VEYXRhKCk6IGFueVxuICAgICAgICBsYW5kc2NhcGVTY3JvbGwoZT86IGFueSwgdD86IGFueSwgbj86IGFueSk6IHZvaWRcbiAgICAgICAgZ2V0U2Nyb2xsWSgpOiBudW1iZXJcbiAgICAgICAgZ2V0U2Nyb2xsWCgpOiBudW1iZXJcbiAgICAgICAgbW92ZVNlY3Rpb25Eb3duKCk6IHZvaWRcbiAgICAgICAgbW92ZVNlY3Rpb25VcCgpOiB2b2lkXG4gICAgICAgIG1vdmVTbGlkZUxlZnQoKTogdm9pZFxuICAgICAgICBtb3ZlU2xpZGVSaWdodCgpOiB2b2lkXG4gICAgICAgIG1vdmVUbyhzZWN0aW9uOiBzdHJpbmcgfCBudW1iZXIsIHNsaWRlPzogc3RyaW5nIHwgbnVtYmVyKTogdm9pZFxuICAgICAgICByZUJ1aWxkKGlzUmVzaXppbmc/OiBib29sZWFuKTogdm9pZFxuICAgICAgICBzZXRBbGxvd1Njcm9sbGluZyh2YWx1ZTogYm9vbGVhbiwgZGlyZWN0aW9ucz86IHN0cmluZyk6IHZvaWRcbiAgICAgICAgc2V0QXV0b1Njcm9sbGluZyh2YWx1ZTogYm9vbGVhbiwgdHlwZT86IHN0cmluZyk6IHZvaWRcbiAgICAgICAgc2V0Rml0VG9TZWN0aW9uKHZhbHVlOiBib29sZWFuLCB0eXBlPzogc3RyaW5nKTogdm9pZFxuICAgICAgICBzZXRLZXlib2FyZFNjcm9sbGluZyh2YWx1ZTogYm9vbGVhbiwgZGlyZWN0aW9ucz86IHN0cmluZyk6IHZvaWRcbiAgICAgICAgc2V0TG9ja0FuY2hvcnModmFsdWU6IGJvb2xlYW4pOiB2b2lkXG4gICAgICAgIHNldE1vdXNlV2hlZWxTY3JvbGxpbmcodmFsdWU6IGJvb2xlYW4pOiB2b2lkXG4gICAgICAgIHNldFJlY29yZEhpc3RvcnkodmFsdWU6IGJvb2xlYW4sIHR5cGU/OiBzdHJpbmcpOiB2b2lkXG4gICAgICAgIHNldFJlc3BvbnNpdmUodmFsdWU6IGJvb2xlYW4pOiB2b2lkXG4gICAgICAgIHNldFNjcm9sbGluZ1NwZWVkKHZhbHVlOiBudW1iZXIsIHR5cGU/OiBzdHJpbmcpOiB2b2lkXG4gICAgICAgIHNpbGVudE1vdmVUbyhzZWN0aW9uQW5jaG9yOiBzdHJpbmcgfCBudW1iZXIsIHNsaWRlQW5jaG9yPzogc3RyaW5nIHwgbnVtYmVyKTogdm9pZFxuICAgICAgICBzaGFyZWQ6IHtcbiAgICAgICAgICAgIGFmdGVyUmVuZGVyQWN0aW9ucygpOiB2b2lkXG4gICAgICAgIH1cbiAgICAgICAgdGVzdDoge1xuICAgICAgICAgICAgbGVmdDogbnVtYmVyW11cbiAgICAgICAgICAgIHRvcDogc3RyaW5nXG4gICAgICAgICAgICB0cmFuc2xhdGUzZDogc3RyaW5nXG4gICAgICAgICAgICB0cmFuc2xhdGUzZEg6IHN0cmluZ1tdXG4gICAgICAgICAgICBzZXRBdXRvU2Nyb2xsaW5nKHZhbHVlOiBib29sZWFuLCB0eXBlPzogc3RyaW5nKTogdm9pZFxuICAgICAgICAgICAgb3B0aW9uczogZnVsbHBhZ2VPcHRpb25zXG4gICAgICAgIH1cbiAgICB9XG59Il19 ================================================ FILE: dist/@fullpage/angular-fullpage/esm2015/public_api.js ================================================ /* * Public API Surface of angular-fullpage */ /// export { AngularFullpageModule } from './lib/angular-fullpage.module'; export { FullpageDirective, AnchorLinkDirective } from './lib/fullpage.directive'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hbmd1bGFyLWZ1bGxwYWdlL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxvREFBb0Q7QUFFcEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDdEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLG1CQUFtQixFQUFFLE1BQU0sMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGFuZ3VsYXItZnVsbHBhZ2VcbiAqL1xuXG4vLy8gPHJlZmVyZW5jZSBwYXRoPVwiLi9saWIvZnVsbHBhZ2UuaW50ZXJmYWNlLnRzXCIgLz5cblxuZXhwb3J0IHsgQW5ndWxhckZ1bGxwYWdlTW9kdWxlIH0gZnJvbSAnLi9saWIvYW5ndWxhci1mdWxscGFnZS5tb2R1bGUnO1xuZXhwb3J0IHsgRnVsbHBhZ2VEaXJlY3RpdmUsIEFuY2hvckxpbmtEaXJlY3RpdmUgfSBmcm9tICcuL2xpYi9mdWxscGFnZS5kaXJlY3RpdmUnO1xuIl19 ================================================ FILE: dist/@fullpage/angular-fullpage/fesm2015/fullpage-angular-fullpage.js ================================================ import * as i0 from '@angular/core'; import { EventEmitter, PLATFORM_ID, Directive, Inject, Input, Output, HostListener, NgModule } from '@angular/core'; import { isPlatformBrowser, isPlatformServer } from '@angular/common'; class FullpageDirective { constructor(platformId, renderer) { this.platformId = platformId; this.renderer = renderer; this.ref = new EventEmitter(); } ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { this.initFullpage(); } if (isPlatformServer(this.platformId)) { // server side code } } initFullpage() { console.log("fullpage", fullpage); this.fullpageApi = new fullpage('#' + this.id, this.options); this.addBuildFunction(); this.ref.emit(this.fullpageApi); } addBuildFunction() { this.fullpageApi.build = () => { const activeSection = this.fullpageApi.getActiveSection(); const activeSlide = this.fullpageApi.getActiveSlide(); this.destroyFullpage(); if (activeSection) { this.renderer.addClass(activeSection.item, 'active'); } if (activeSlide) { this.renderer.addClass(activeSlide.item, 'active'); } this.initFullpage(); }; } destroyFullpage() { if (typeof this.fullpageApi !== 'undefined' && typeof this.fullpageApi.destroy !== 'undefined') { this.fullpageApi.destroy('all'); } } ngOnDestroy() { this.destroyFullpage(); } } /** @nocollapse */ FullpageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: FullpageDirective, deps: [{ token: PLATFORM_ID }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); /** @nocollapse */ FullpageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: FullpageDirective, selector: "[fullpage]", inputs: { id: "id", options: "options" }, outputs: { ref: "ref" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: FullpageDirective, decorators: [{ type: Directive, args: [{ selector: '[fullpage]', }] }], ctorParameters: function () { return [{ type: Object, decorators: [{ type: Inject, args: [PLATFORM_ID] }] }, { type: i0.Renderer2 }]; }, propDecorators: { id: [{ type: Input }], options: [{ type: Input }], ref: [{ type: Output }] } }); class AnchorLinkDirective { onClick(event) { if (this.href.length > 0 && this.href[0] === '#') { event.preventDefault(); window.location.hash = this.href; } } } /** @nocollapse */ AnchorLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AnchorLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); /** @nocollapse */ AnchorLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.0", type: AnchorLinkDirective, selector: "[href]", inputs: { href: "href" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AnchorLinkDirective, decorators: [{ type: Directive, args: [{ selector: '[href]' }] }], propDecorators: { href: [{ type: Input }], onClick: [{ type: HostListener, args: ['click', ['$event']] }] } }); class AngularFullpageModule { } /** @nocollapse */ AngularFullpageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); /** @nocollapse */ AngularFullpageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }); /** @nocollapse */ AngularFullpageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, imports: [[]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.0", ngImport: i0, type: AngularFullpageModule, decorators: [{ type: NgModule, args: [{ imports: [], declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }] }] }); /* * Public API Surface of angular-fullpage */ /** * Generated bundle index. Do not edit. */ export { AnchorLinkDirective, AngularFullpageModule, FullpageDirective }; //# sourceMappingURL=fullpage-angular-fullpage.js.map ================================================ FILE: dist/@fullpage/angular-fullpage/fullpage-angular-fullpage.d.ts ================================================ /** * Generated bundle index. Do not edit. */ /// export * from './public_api'; ================================================ FILE: dist/@fullpage/angular-fullpage/lib/angular-fullpage.module.d.ts ================================================ import * as i0 from "@angular/core"; import * as i1 from "./fullpage.directive"; export declare class AngularFullpageModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } ================================================ FILE: dist/@fullpage/angular-fullpage/lib/fullpage.directive.d.ts ================================================ import { AfterViewInit, OnDestroy, EventEmitter, Renderer2 } from '@angular/core'; import * as i0 from "@angular/core"; export declare class FullpageDirective implements AfterViewInit, OnDestroy { private platformId; private renderer; id: any; options: any; ref: EventEmitter; fullpageApi: any; constructor(platformId: Object, renderer: Renderer2); ngAfterViewInit(): void; initFullpage(): void; addBuildFunction(): void; destroyFullpage(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class AnchorLinkDirective { href: string; onClick(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } ================================================ FILE: dist/@fullpage/angular-fullpage/lib/fullpage.interface.d.ts ================================================ declare module 'fullpage.js/dist/fullpage.extensions.min' { export default function (containerSelector: string, options: fullpageOptions): void; type Item = { anchor: string | number; index: number; item: HTMLElement; isFirst: boolean; isLast: boolean; }; type DragAndMove = boolean | "vertical" | "horizontal" | "fingersonly" | "mouseonly"; type FadingEffect = boolean | "sections" | "slides"; type InterlockedSlides = boolean | Array; type bigSectionsDestination = "top" | "bottom" | null; type Parallax = boolean | "sections" | "slides"; type DropEffect = boolean | "sections" | "slides"; type WaterEffect = boolean | "sections" | "slides"; type Trigger = "slideArrow" | "verticalNav" | "horizontalNav" | "keydown" | "wheel" | "menu"; type ScrollOverflowReset = boolean | "slides" | "sections"; type WaterEffectOptions = { animateContent: boolean; animateOnMouseMove: boolean; }; type CardsOptions = { perspective: number; fadeContent: boolean; fadeBackground: boolean; }; type ParallaxOptions = { percentage?: number; property?: "translate" | "background"; type?: "reveal" | "cover"; }; type Credits = { enabled?: boolean; label?: string; position?: "left" | "right"; }; interface fullpageOptions { anchors?: string[]; animateAnchor?: boolean; autoScrolling?: boolean; bigSectionsDestination?: bigSectionsDestination; continuousHorizontal?: boolean; continuousVertical?: boolean; controlArrowColor?: string; controlArrows?: boolean; controlArrowsHTML?: string[]; css3?: boolean; dragAndMove?: DragAndMove; easing?: string; easingcss3?: string; fadingEffect?: FadingEffect; fitToSection?: boolean; fitToSectionDelay?: number; fixedElements?: string; hybrid?: boolean; interlockedSlides?: InterlockedSlides; keyboardScrolling?: boolean; lazyLoading?: boolean; observer?: boolean; licenseKey?: string; credits: Credits; lockAnchors?: boolean; loopBottom?: boolean; loopHorizontal?: boolean; loopTop?: boolean; menu?: string; navigation?: boolean; navigationPosition?: string; navigationTooltips?: string[]; normalScrollElementTouchThreshold?: number; normalScrollElements?: string; offsetSections?: boolean; paddingBottom?: string; paddingTop?: string; parallax?: Parallax; parallaxOptions?: ParallaxOptions; recordHistory?: boolean; resetSliders?: boolean; responsive?: number; responsiveHeight?: number; responsiveSlides?: boolean; responsiveWidth?: number; scrollBar?: boolean; scrollHorizontally?: boolean; scrollOverflow?: boolean; scrollOverflowMacStyle?: boolean; scrollOverflowHandler?: any; scrollOverflowReset?: ScrollOverflowReset; scrollingSpeed?: number; dropEffect?: DropEffect; dropEffectOptions?: any; waterEffect?: WaterEffect; waterEffectOptions?: WaterEffectOptions; cards?: boolean; cardsOptions?: CardsOptions; sectionSelector?: string; sectionsColor?: string[]; showActiveTooltip?: boolean; slideSelector?: string; slidesNavPosition?: "top" | "bottom"; slidesNavigation?: boolean; touchSensitivity?: number; verticalCentered?: boolean; afterLoad?(origin: Item, destination: Item, direction: string, trigger: Trigger): void; afterRender?(): void; afterResize?(width: number, height: number): void; afterReBuild?(): void; afterResponsive?(isResponsive: boolean): void; afterSlideLoad?(section: Item, origin: Item, destination: Item, direction: string, trigger: Trigger): void; onLeave?(origin: Item, destination: Item, direction: string, trigger: Trigger): void; beforeLeave?(origin: Item, destination: Item, direction: string, trigger: Trigger): void; onSlideLeave?(section: Item, origin: Item, destination: Item, direction: string, trigger: Trigger): void; onScrollOverflow?(section: Item, slide: Item, position: number, direction: string): void; fadingEffectKey?: string; responsiveSlidesKey?: string; continuousHorizontalKey?: string; interlockedSlidesKey?: string; scrollHorizontallyKey?: string; resetSlidersKey?: string; offsetSectionsKey?: string; dragAndMoveKey?: string; parallaxKey?: string; } interface fullpageApi { continuousHorizontal: boolean; dragAndMove: DragAndMove; fadingEffect: FadingEffect; interlockedSlides: InterlockedSlides; offsetSections: boolean; parallax: Parallax; resetSliders: boolean; responsiveSlides: boolean; scrollHorizontally: boolean; scrollOverflowReset: ScrollOverflowReset; version: string; destroy(type?: string): void; fitToSection(): void; getActiveSection(): Item; getActiveSlide(): Item; getFullpageData(): any; landscapeScroll(e?: any, t?: any, n?: any): void; getScrollY(): number; getScrollX(): number; moveSectionDown(): void; moveSectionUp(): void; moveSlideLeft(): void; moveSlideRight(): void; moveTo(section: string | number, slide?: string | number): void; reBuild(isResizing?: boolean): void; setAllowScrolling(value: boolean, directions?: string): void; setAutoScrolling(value: boolean, type?: string): void; setFitToSection(value: boolean, type?: string): void; setKeyboardScrolling(value: boolean, directions?: string): void; setLockAnchors(value: boolean): void; setMouseWheelScrolling(value: boolean): void; setRecordHistory(value: boolean, type?: string): void; setResponsive(value: boolean): void; setScrollingSpeed(value: number, type?: string): void; silentMoveTo(sectionAnchor: string | number, slideAnchor?: string | number): void; shared: { afterRenderActions(): void; }; test: { left: number[]; top: string; translate3d: string; translate3dH: string[]; setAutoScrolling(value: boolean, type?: string): void; options: fullpageOptions; }; } } ================================================ FILE: dist/@fullpage/angular-fullpage/package.json ================================================ { "name": "@fullpage/angular-fullpage", "version": "0.1.8", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "peerDependencies": { "@angular/common": ">12.0.0", "@angular/core": ">12.0.0" }, "dependencies": { "fullpage.js": "4.0.35", "tslib": "^2.1.0" }, "main": "bundles/fullpage-angular-fullpage.umd.js", "module": "fesm2015/fullpage-angular-fullpage.js", "es2015": "fesm2015/fullpage-angular-fullpage.js", "esm2015": "esm2015/fullpage-angular-fullpage.js", "fesm2015": "fesm2015/fullpage-angular-fullpage.js", "typings": "fullpage-angular-fullpage.d.ts", "sideEffects": false } ================================================ FILE: dist/@fullpage/angular-fullpage/public_api.d.ts ================================================ /// export { AngularFullpageModule } from './lib/angular-fullpage.module'; export { FullpageDirective, AnchorLinkDirective } from './lib/fullpage.directive'; ================================================ FILE: package.json ================================================ { "name": "@fullpage/angular-fullpage", "version": "0.1.9", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "main": "dist/@fullpage/angular-fullpage", "files": [ "dist" ], "scripts": { "ng": "ng", "start": "ng serve", "post-build": "cpx README.md dist/@fullpage/angular-fullpage", "build": "node --openssl-legacy-provider ./node_modules/@angular/cli/bin/ng build angular-fullpage && npm run post-build", "lint": "ng lint" }, "dependencies": { "@angular-devkit/build-angular": "12.0.0", "@angular/common": "12.0.0", "@angular/core": "12.0.0", "@angular/cli": "12.0.0", "@angular/compiler": "12.0.0", "@angular/compiler-cli": "12.0.0", "fullpage.js": "^4.0.37" }, "devDependencies": { "cpx": "^1.5.0", "cross-env": "^7.0.3", "ng-packagr": "^12.0.0", "ts-node": "~8.0.0", "typescript": "4.2.3" } } ================================================ FILE: src/angular-fullpage/lib/angular-fullpage.module.ts ================================================ import { NgModule } from '@angular/core'; import { FullpageDirective, AnchorLinkDirective } from './fullpage.directive'; @NgModule({ imports: [], declarations: [FullpageDirective, AnchorLinkDirective], exports: [FullpageDirective, AnchorLinkDirective] }) export class AngularFullpageModule { } ================================================ FILE: src/angular-fullpage/lib/fullpage.directive.ts ================================================ import { Directive, Input, AfterViewInit, OnDestroy, Output, EventEmitter, Renderer2, HostListener, PLATFORM_ID, Inject } from '@angular/core'; import { isPlatformBrowser, isPlatformServer } from '@angular/common'; declare let fullpage: any; @Directive({ selector: '[fullpage]', }) export class FullpageDirective implements AfterViewInit, OnDestroy { @Input() id; @Input() options; @Output() ref = new EventEmitter(); fullpageApi; constructor( @Inject(PLATFORM_ID) private platformId: Object, private renderer: Renderer2 ) { } ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { this.initFullpage(); } if (isPlatformServer(this.platformId)) { // server side code } } initFullpage() { console.log("fullpage", fullpage); this.fullpageApi = new fullpage('#' + this.id, this.options); this.addBuildFunction(); this.ref.emit(this.fullpageApi); } addBuildFunction() { this.fullpageApi.build = () => { const activeSection = this.fullpageApi.getActiveSection(); const activeSlide = this.fullpageApi.getActiveSlide(); this.destroyFullpage(); if (activeSection) { this.renderer.addClass(activeSection.item, 'active'); } if (activeSlide) { this.renderer.addClass(activeSlide.item, 'active'); } this.initFullpage(); }; } destroyFullpage() { if (typeof this.fullpageApi !== 'undefined' && typeof this.fullpageApi.destroy !== 'undefined') { this.fullpageApi.destroy('all'); } } ngOnDestroy() { this.destroyFullpage(); } } @Directive({ selector : '[href]' }) export class AnchorLinkDirective { @Input() href: string; @HostListener('click', ['$event']) onClick(event) { if (this.href.length > 0 && this.href[0] === '#') { event.preventDefault(); window.location.hash = this.href; } } } ================================================ FILE: src/angular-fullpage/lib/fullpage.interface.ts ================================================ declare module 'fullpage.js/dist/fullpage.extensions.min' { export default function(containerSelector: string, options: fullpageOptions): void; export type Item = { anchor: string | number, index: number, item: HTMLElement, isFirst: boolean, isLast: boolean }; type DragAndMove = boolean | "vertical" | "horizontal" | "fingersonly" | "mouseonly"; type FadingEffect = boolean | "sections" | "slides"; type InterlockedSlides = boolean | Array; type bigSectionsDestination = "top" | "bottom" | null; type Parallax = boolean | "sections" | "slides"; type DropEffect = boolean | "sections" | "slides"; type WaterEffect = boolean | "sections" | "slides"; type Trigger = "slideArrow" | "verticalNav" | "horizontalNav" | "keydown" | "wheel" | "menu"; type ScrollOverflowReset = boolean | "slides" | "sections"; type WaterEffectOptions = { animateContent: boolean animateOnMouseMove: boolean }; type CardsOptions = { perspective: number fadeContent: boolean fadeBackground: boolean }; type ParallaxOptions = { percentage?: number property?: "translate" | "background" type?: "reveal" | "cover" }; type Credits = { enabled?: boolean, label?: string, position?: "left" | "right" } export interface fullpageOptions { anchors?: string[] animateAnchor?: boolean autoScrolling?: boolean bigSectionsDestination?: bigSectionsDestination //top, bottom, null continuousHorizontal?: boolean continuousVertical?: boolean controlArrowColor?: string controlArrows?: boolean controlArrowsHTML?: string[] css3?: boolean dragAndMove?: DragAndMove easing?: string easingcss3?: string fadingEffect?: FadingEffect fitToSection?: boolean fitToSectionDelay?: number fixedElements?: string // '#header, .footer' hybrid?: boolean interlockedSlides?: InterlockedSlides keyboardScrolling?: boolean lazyLoading?: boolean observer?: boolean licenseKey?: string credits: Credits lockAnchors?: boolean loopBottom?: boolean loopHorizontal?: boolean loopTop?: boolean menu?: string navigation?: boolean navigationPosition?: string navigationTooltips?: string[] // ['firstSlide', 'secondSlide'] normalScrollElementTouchThreshold?: number normalScrollElements?: string // '#element1, .element2', offsetSections?: boolean paddingBottom?: string paddingTop?: string parallax?: Parallax // true, false, 'sections', 'slides' parallaxOptions?: ParallaxOptions recordHistory?: boolean resetSliders?: boolean responsive?: number responsiveHeight?: number responsiveSlides?: boolean responsiveWidth?: number scrollBar?: boolean scrollHorizontally?: boolean scrollOverflow?: boolean scrollOverflowMacStyle?: boolean scrollOverflowHandler?: any scrollOverflowReset?: ScrollOverflowReset scrollingSpeed?: number dropEffect?: DropEffect; dropEffectOptions?: any; waterEffect?: WaterEffect; waterEffectOptions?: WaterEffectOptions; cards?: boolean; cardsOptions?: CardsOptions; sectionSelector?: string sectionsColor?: string[] showActiveTooltip?: boolean slideSelector?: string slidesNavPosition?: "top" | "bottom" slidesNavigation?: boolean touchSensitivity?: number verticalCentered?: boolean /* callback and events */ afterLoad?(origin: Item, destination: Item, direction: string, trigger: Trigger): void afterRender?(): void afterResize?(width: number, height: number): void afterReBuild?(): void afterResponsive?(isResponsive: boolean): void afterSlideLoad?(section: Item, origin: Item, destination: Item, direction: string, trigger: Trigger): void onLeave?(origin: Item, destination: Item, direction: string, trigger: Trigger): void beforeLeave?(origin: Item, destination: Item, direction: string, trigger: Trigger): void onSlideLeave?(section: Item, origin: Item, destination: Item, direction: string, trigger: Trigger): void onScrollOverflow?(section: Item, slide: Item, position: number, direction: string): void /* keys for extensions */ fadingEffectKey?: string responsiveSlidesKey?: string continuousHorizontalKey?: string interlockedSlidesKey?: string scrollHorizontallyKey?: string resetSlidersKey?: string offsetSectionsKey?: string dragAndMoveKey?: string parallaxKey?: string /* end key sections */ } export interface fullpageApi { continuousHorizontal: boolean dragAndMove: DragAndMove fadingEffect: FadingEffect interlockedSlides: InterlockedSlides offsetSections: boolean parallax: Parallax resetSliders: boolean responsiveSlides: boolean scrollHorizontally: boolean scrollOverflowReset: ScrollOverflowReset version: string destroy(type?: string): void fitToSection(): void getActiveSection(): Item getActiveSlide(): Item getFullpageData(): any landscapeScroll(e?: any, t?: any, n?: any): void getScrollY(): number getScrollX(): number moveSectionDown(): void moveSectionUp(): void moveSlideLeft(): void moveSlideRight(): void moveTo(section: string | number, slide?: string | number): void reBuild(isResizing?: boolean): void setAllowScrolling(value: boolean, directions?: string): void setAutoScrolling(value: boolean, type?: string): void setFitToSection(value: boolean, type?: string): void setKeyboardScrolling(value: boolean, directions?: string): void setLockAnchors(value: boolean): void setMouseWheelScrolling(value: boolean): void setRecordHistory(value: boolean, type?: string): void setResponsive(value: boolean): void setScrollingSpeed(value: number, type?: string): void silentMoveTo(sectionAnchor: string | number, slideAnchor?: string | number): void shared: { afterRenderActions(): void } test: { left: number[] top: string translate3d: string translate3dH: string[] setAutoScrolling(value: boolean, type?: string): void options: fullpageOptions } } } ================================================ FILE: src/angular-fullpage/public_api.ts ================================================ /* * Public API Surface of angular-fullpage */ /// export { AngularFullpageModule } from './lib/angular-fullpage.module'; export { FullpageDirective, AnchorLinkDirective } from './lib/fullpage.directive'; ================================================ FILE: src/ng-package.json ================================================ { "$schema": "../node_modules/ng-packagr/ng-package.schema.json", "allowedNonPeerDependencies": ["fullpage.js"], "dest": "../dist/@fullpage/angular-fullpage", "lib": { "entryFile": "angular-fullpage/public_api.ts" } } ================================================ FILE: src/package.json ================================================ { "name": "@fullpage/angular-fullpage", "version": "0.1.8", "description": "Official Angular wrapper for fullPage.js", "author": "vh13294", "contributors": [ "vh13294", "alvarotrigo", "alidihaw" ], "homepage": "https://github.com/alvarotrigo/angular-fullpage", "repository": { "type": "git", "url": "https://github.com/alvarotrigo/angular-fullpage" }, "license": "GPL-3.0", "private": false, "peerDependencies": { "@angular/common": ">12.0.0", "@angular/core": ">12.0.0" }, "dependencies": { "fullpage.js": "4.0.35" } } ================================================ FILE: src/tsconfig.lib.json ================================================ { "extends": "../tsconfig.json", "compilerOptions": { "typeRoots": ["src/angular-fullpage/lib/fullpage.interface.ts"], "outDir": "../out-tsc/lib", "target": "ES2015", "module": "ES2015", "moduleResolution": "node", "declaration": true, "sourceMap": true, "inlineSources": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "types": [], "lib": [ "dom", "ES2015" ] }, "angularCompilerOptions": { "annotateForClosureCompiler": true, "skipTemplateCodegen": true, "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true, "enableResourceInlining": true, "compilationMode": "partial", "enableIvy": true }, "exclude": [ "src/test.ts", "**/*.spec.ts" ] } ================================================ FILE: src/tslint.json ================================================ { "extends": "../tslint.json", "rules": { "directive-selector": [ true, "attribute", "fp", "camelCase" ], "component-selector": [ true, "element", "fp", "kebab-case" ] } } ================================================ FILE: tsconfig.json ================================================ { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "ES2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "ES2015", "typeRoots": [ "node_modules/@types" ], "lib": [ "ES2015", "dom" ] } } ================================================ FILE: tslint.json ================================================ { "rulesDirectory": [ "node_modules/codelyzer" ], "rules": { "arrow-return-shorthand": true, "callable-types": true, "class-name": true, "comment-format": [ true, "check-space" ], "curly": true, "deprecation": { "severity": "warn" }, "eofline": true, "forin": true, "import-blacklist": [ true, "rxjs/Rx" ], "import-spacing": true, "indent": [ true, "spaces" ], "interface-over-type-literal": true, "label-position": true, "max-line-length": [ true, 140 ], "member-access": false, "member-ordering": [ true, { "order": [ "static-field", "instance-field", "static-method", "instance-method" ] } ], "no-arg": true, "no-bitwise": true, "no-console": [ true, "debug", "info", "time", "timeEnd", "trace" ], "no-construct": true, "no-debugger": true, "no-duplicate-super": true, "no-empty": false, "no-empty-interface": true, "no-eval": true, "no-inferrable-types": [ true, "ignore-params" ], "no-misused-new": true, "no-non-null-assertion": true, "no-redundant-jsdoc": true, "no-shadowed-variable": true, "no-string-literal": false, "no-string-throw": true, "no-switch-case-fall-through": true, "no-trailing-whitespace": true, "no-unnecessary-initializer": true, "no-unused-expression": true, "no-use-before-declare": true, "no-var-keyword": true, "object-literal-sort-keys": false, "one-line": [ true, "check-open-brace", "check-catch", "check-else", "check-whitespace" ], "prefer-const": true, "quotemark": [ true, "single" ], "radix": true, "semicolon": [ true, "always" ], "triple-equals": [ true, "allow-null-check" ], "typedef-whitespace": [ true, { "call-signature": "nospace", "index-signature": "nospace", "parameter": "nospace", "property-declaration": "nospace", "variable-declaration": "nospace" } ], "unified-signatures": true, "variable-name": false, "whitespace": [ true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type" ], "no-output-on-prefix": true, "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true, "no-input-rename": true, "no-output-rename": true, "use-life-cycle-interface": true, "use-pipe-transform-interface": true, "component-class-suffix": true, "directive-class-suffix": true } }