Skip to content

hector-js/playing-with-forms

Folders and files

NameName
Last commit message
Last commit date
Jun 9, 2018
Jun 3, 2019
Jun 9, 2018
Jun 12, 2018
Sep 23, 2018
Jun 7, 2019
Jul 15, 2018
Sep 29, 2018
Nov 5, 2018
Jul 16, 2020
Nov 3, 2019
Jun 9, 2018
Sep 23, 2018
Jun 9, 2018
Sep 29, 2018

Repository files navigation

PLAYING WITH FORMS ANGULAR 8

The title describes the project by itself, playing with forms in Angular 6 for a multi page application!! :)

RootModules and FeatureModule

Using the following structure for an application multipage.

src
¦
¦---app [root-module-folder]
¦
 ---modules  [feature-modules-folder]
    ¦
    ¦---page-one [feature-module-folder-one]
    ¦   ¦
    ¦   ¦---components
    ¦   ¦   ¦
    ¦   ¦    -page-one.component
    ¦   ¦
    ¦    ---service
    ¦       ¦
    ¦        -page-one.service
    ...
    ¦
     ---page-[n] [feature-module-folder-[N]]
        ¦
        ¦---components
        ¦   ¦
        ¦    -page-[N].component
        ¦
         ---service
            ¦
            -page-[N].service
        

If you want to start the project from scratch, it could be easy running this cli commands:

    cd src
    ng generate module page-one --routing
    ng generate component page-one/page-one
    ng generate service page-one/page-one
    ...
    ng generate module page-[N]  --routing
    ng generate component page-one/page-[N]
    ng generate service page-one/page-[N]

Being N the number of pages of the application

Providers

(IN PROGRESS)

Tools

  • Jasmine

References

https://angular.io/guide/ngmodules