GithubHelp home page GithubHelp logo

Comments (8)

tomer953 avatar tomer953 commented on June 9, 2024 4

I Agree (and suggested it before)

lets suggeste categories?

  • RxJS Operators
    • filterArray
    • filterNil
    • mapArray
    • reduceArray
  • Directives
    • repeat
    • resize
  • Pipes
    • CallPipe / AsyncPipe
    • TrackById / TrackByProp
  • Signals
    • computedFrom
    • connect
  • Inject utils (?)
    • assetInjection
    • createInjectionToken
    • injectDestroy
    • injectNavigationEnd
  • Misc.
    • createEffect
    • IfValidator / IfAsyncValidator
    • Intl

from ngxtension-platform.

tomer953 avatar tomer953 commented on June 9, 2024 2

I think it would be lovely to structure the body content, not just the menu.

To have a standard, like this:

  1. Introduction - What is it? Why do we need it? In two words - The problem.
  2. Usage - Importing & examples with descriptions.
  3. Configurations - Examples and descriptions, including default options if any.
  4. Error Handling and/or Fallbacks.

This is just an idea, is just what I have in mind now.

Also, the body should contain 1 or 2 backlinks if it's the case, especially for newbies that will explain why you should use this over that. 🤷🏻‍♂️

I agree, a template for the doc should be very useful.
I made a pr #71 last week trying to convert the majority of the utils to the same template.
The lib is growing fast so its hard to maintain, but I suggest that for new utils to just copy-paste an existing doc file and modify it

For the categories, ill try to PR in a few days

from ngxtension-platform.

tomer953 avatar tomer953 commented on June 9, 2024 1

updated with some examples

from ngxtension-platform.

wanoo21 avatar wanoo21 commented on June 9, 2024 1

I think it would be lovely to structure the body content, not just the menu.

To have a standard, like this:

  1. Introduction - What is it? Why do we need it? In two words - The problem.
  2. Usage - Importing & examples with descriptions.
  3. Configurations - Examples and descriptions, including default options if any.
  4. Error Handling and/or Fallbacks.

This is just an idea, is just what I have in mind now.

Also, the body should contain 1 or 2 backlinks if it's the case, especially for newbies that will explain why you should use this over that. 🤷🏻‍♂️

from ngxtension-platform.

e-oz avatar e-oz commented on June 9, 2024

I would add the "State Management" category.

from ngxtension-platform.

LcsGa avatar LcsGa commented on June 9, 2024

Instead of directives, pipes, etc. categories, and as sometimes we could have different types in one feature + as the name state the lib is tought to be an extension of angular 👉 shouldn't we try to put them in the same packages as angular (eg: core, core/rxjs-interrop, common, etc.) (We could also create new ones if we feel like there is a missing spot in angular, like for state management like @e-oz said)

from ngxtension-platform.

tomer953 avatar tomer953 commented on June 9, 2024

Can you provide example with the current utils? not sure how well its fit

from ngxtension-platform.

LcsGa avatar LcsGa commented on June 9, 2024

For example:

  • computedFrom or connect are used for rxjs interoperability 👉 they could be placed into core/rxjs-interop
  • trackBy is a tool of NgFor which is in common 👉 thus we could add TrackById / TrackByProp into common
  • the AsyncPipe is also part of common 👉 we could add CallPipe / AsyncPipe into common too
  • assertInInjectionContext is witin core 👉 we could add assertInjection within core
  • rxjs operators, on the contrary, could be placed within a new package as I personnaly don't think that it should be placed within the interop package (I may be wrong)
  • etc.

from ngxtension-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.