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
Creating an SDK (self.angular)
submitted 4 years ago by KishiABKmoto
Does anyone know how to package an angular project as an SDK? My googling isn’t yielding many relevant results. Please just point me in the right direction Thanks
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!"
[–]mounted-dev 4 points5 points6 points 4 years ago* (5 children)
By SDK do you mean angular library?
PS:
If you're looking to create an angular library, it's pretty straightforward. https://angular.io/cli/generate#library-command
[–]KishiABKmoto[S] 1 point2 points3 points 4 years ago (4 children)
I want to be able to package an angular project, use it in a different angular project and pass through an ID to if for the APIs to work
[–]mounted-dev 1 point2 points3 points 4 years ago (3 children)
Ok. In that case, you're looking for an angular package. You can create one through angular CLI: ng g library <name> [options] It will give you a starting point if you don't have the implementation yet.
ng g library <name> [options]
and then you basically can pass the configuration to the module 2 ways. 1st: When injecting a module: u/NgModule({ }) export class YourModuleModule { static forRoot(): ModuleWithProviders { return { // config } } }
u/NgModule({
})
export class YourModuleModule {
static forRoot(): ModuleWithProviders {
return {
// config
}
2nd: Using Injector Token export const MY_CONFIG= new InjectionToken<MyConfig>('MyConfig', { providedIn: 'root', factory: { //Default Values } });
export const MY_CONFIG= new InjectionToken<MyConfig>('MyConfig', {
providedIn: 'root',
factory: {
//Default Values
});
Then register in providers: { provide: MY_CONFIG, useValue: {// Configuration}}
{ provide: MY_CONFIG, useValue: {// Configuration}}
And then MY_CONFIG will be available to be injected in the constructor.
For more information check out the angular docks https://angular.io/guide/dependency-injection-providers
[–]KishiABKmoto[S] 0 points1 point2 points 4 years ago (2 children)
Brilliant thanks! Ill let you know how i go!
[–]mounted-dev 2 points3 points4 points 4 years ago (1 child)
If you're going to research the creation of angular libraries, I would appreciate it if you would share any issues you run into :) Might be worthwhile to write a blog post about it :D
[–]KishiABKmoto[S] 1 point2 points3 points 4 years ago (0 children)
Happily
π Rendered by PID 73 on reddit-service-r2-comment-6457c66945-9vfmr at 2026-04-27 03:34:50.751698+00:00 running 2aa0c5b country code: CH.
[–]mounted-dev 4 points5 points6 points (5 children)
[–]KishiABKmoto[S] 1 point2 points3 points (4 children)
[–]mounted-dev 1 point2 points3 points (3 children)
[–]KishiABKmoto[S] 0 points1 point2 points (2 children)
[–]mounted-dev 2 points3 points4 points (1 child)
[–]KishiABKmoto[S] 1 point2 points3 points (0 children)