d080ca2cc6
further improve developer morale get initial angular loading Add remote css to config index Starts work to port endpoints into config app Add the api blueprint
45 lines
936 B
TypeScript
45 lines
936 B
TypeScript
import { NgModule } from 'ng-metadata/core';
|
|
import * as restangular from 'restangular';
|
|
|
|
const quayDependencies: string[] = [
|
|
'restangular',
|
|
'ngCookies',
|
|
'angularFileUpload',
|
|
'ngSanitize'
|
|
];
|
|
|
|
@NgModule(({
|
|
imports: quayDependencies,
|
|
declarations: [],
|
|
providers: [
|
|
provideConfig,
|
|
]
|
|
}))
|
|
class DependencyConfig{}
|
|
|
|
|
|
provideConfig.$inject = [
|
|
'$provide',
|
|
'$injector',
|
|
'$compileProvider',
|
|
'RestangularProvider',
|
|
];
|
|
|
|
function provideConfig($provide: ng.auto.IProvideService,
|
|
$injector: ng.auto.IInjectorService,
|
|
$compileProvider: ng.ICompileProvider,
|
|
RestangularProvider: any): void {
|
|
|
|
// Configure the API provider.
|
|
RestangularProvider.setBaseUrl('/api/v1/');
|
|
|
|
console.log('i');
|
|
}
|
|
|
|
|
|
@NgModule({
|
|
imports: [ DependencyConfig ],
|
|
declarations: [],
|
|
providers: []
|
|
})
|
|
export class ConfigAppModule {}
|