About 5,220,000 results
Open links in new tab
  1. angular - What does @Injectable mean? - Stack Overflow

    Sep 23, 2019 · Injectable () in the service specifies that this service can be injected/used in other components. In short if service has injectable decorator, other components can use that …

  2. Why do we use @Injectable () decorator , when we can actually …

    The @Injectable () decorator has the providedIn metadata option, where you can specify the provider of the decorated service class with the root injector, or with the injector for a specific …

  3. What is the difference between @Inject and @Injectable in …

    May 19, 2016 · What is the difference between @Inject and @Injectable in Angular 2 typescript Asked 9 years, 5 months ago Modified 7 years, 3 months ago Viewed 28k times

  4. node.js - What is Injectable in NestJS? - Stack Overflow

    Oct 14, 2020 · I not really understand @Injectable in NestJS. Some tutorial tell @Injectable tell the @Controller know it's an install and can use it as a Dependency Injection.

  5. dependency injection - How can I make an Angular service …

    Sep 11, 2024 · I am trying to create a service in Angular that should only be injectable within a specific module, not accessible outside that module. I have a service MyService that I want to …

  6. typescript - What is the purpose of providedIn with the Injectable ...

    Jun 14, 2018 · Injectable is provided - an instance of the Injectable will be given to classes below this specific injector level, whenever they request it. Injectable is injected - a class constructor …

  7. angular - Component as Injectable? - Stack Overflow

    Apr 8, 2016 · A component is injectable by default @Component() (or @Directive()) includes @Injectable(). Don't expect to get a specific instance of a component injected. This works for …

  8. javascript - In the next major version, Nest will not allow classes ...

    May 26, 2022 · WARN [DependenciesScanner] In the next major version, Nest will not allow classes annotated with @Injectable(), @Catch(), and @Controller() decorators to appear in …

  9. Angular 19 - Why is a new @Injectable service created each time

    Jan 11, 2025 · I created a service for authentication which keeps an _isAuthenticated state as a class property. The service is marked as @injectable. I then injected the service into a route …

  10. Angular JIT compilation failed: '@angular/compiler' not loaded

    Sep 7, 2021 · Re-creating android platform fixed the issue for me. Check out: blank-screen-angular-jit-compilation-failed-angular-compiler-not-loaded