Skip to content
Einar Huseby edited this page Jan 8, 2018 · 8 revisions

Welcome to the nlf-client wiki!

Structure of nlf-client:

Structure of nlf-client

The structure is as in a collection of applications with shared resources.

  • All logical application containers are all prefixed app- and placed in root
  • The main files of the respective applications are also prefixed app- in the applictions root
  • Further logical subapplications are not prefixed
  • Shared resources are not prefixed

Example directory structure:

app/
    app-user/
        app-user.component.ts
        app-user.template.ts
        user-settings/
            user-settings.component.ts
            user-settings.template.ts
    resolve/
        resolve-user/
            resolve-user.component.ts

app-user/ is a logical container for the user application with the component having selector app-user and classname AppUserComponent.

app-user/user-settings/ is the logical container for the users' settings with the component having the selector app-user-settings and classname AppUserSettingsComponent

resolve/ is the logical container for all resolvers. All resolvers' selectors are prefixed app-resolve- and classnames appResolve

Selectors and classnames

  • All selectors shall be prefixed app- regardsless of the file being prefixed or not
  • All classnames shall be prefixed app following the structure of the selectors

Structured as per application/collection of components. Common and shared resources are in root folder by category (services...). Components can and will be share across applications

Clone this wiki locally