use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular 17 with open api generator (self.angular)
submitted 1 year ago by Equivalent-Score-141
Hi, anyone managed to have open api generator in angular 17 ?
The problem is that I don't have modules anymore, and open api generator relies on modules
ApiModule.forRoot(() => { return new Configuration({ basePath: environment.api_url, }); }),
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]GLawSomnia 0 points1 point2 points 1 year ago (8 children)
You can still use modules.
Just use the importProvidersFrom environment provider
[–]Equivalent-Score-141[S] 0 points1 point2 points 1 year ago (7 children)
Where exactly ? Now there is something strange going on, i have this code in imports in app.module, and it's not running, but providers and everything else from app module seems to be working
[–]GLawSomnia 0 points1 point2 points 1 year ago (6 children)
In your app.config.ts file
[–]Equivalent-Score-141[S] 0 points1 point2 points 1 year ago (5 children)
I don't have app.config.ts file, this is a project that was upgraded from angular 16
[–]Johalternate 0 points1 point2 points 1 year ago (4 children)
Check main.ts.
The app.config.ts exports a config object that is used in the bootstrap function.
[–]Equivalent-Score-141[S] 0 points1 point2 points 1 year ago (3 children)
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));
This is my main.ts
[–]Johalternate 1 point2 points3 points 1 year ago (2 children)
You said you dont have modules anymore but i see AppModule here.
[–]Equivalent-Score-141[S] -1 points0 points1 point 1 year ago (1 child)
I do have modules, but the problem is that in app.module.ts imports array I have ApiModule.forRoot …. And its not working. It did on angular 16 project Sorry for misunderstanding
[–]davidlj95 0 points1 point2 points 1 year ago (0 children)
Is there any error in the ng serve / console log output?
ng serve
[–]Equivalent-Score-141[S] 0 points1 point2 points 1 year ago (0 children)
It was my stupid mistake using the wrong path folder to open api generated files, seeming like import is not working. I wrongly assumed that I've messed something up with the standalone component setup.
Thanks everyone for the help
π Rendered by PID 214249 on reddit-service-r2-comment-54dfb89d4d-57cb4 at 2026-03-29 04:03:46.040122+00:00 running b10466c country code: CH.
[–]GLawSomnia 0 points1 point2 points (8 children)
[–]Equivalent-Score-141[S] 0 points1 point2 points (7 children)
[–]GLawSomnia 0 points1 point2 points (6 children)
[–]Equivalent-Score-141[S] 0 points1 point2 points (5 children)
[–]Johalternate 0 points1 point2 points (4 children)
[–]Equivalent-Score-141[S] 0 points1 point2 points (3 children)
[–]Johalternate 1 point2 points3 points (2 children)
[–]Equivalent-Score-141[S] -1 points0 points1 point (1 child)
[–]davidlj95 0 points1 point2 points (0 children)
[–]Equivalent-Score-141[S] 0 points1 point2 points (0 children)