Skip to content

roeb/Angular2ConfigurationManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reusable Angular Services: Configuration Management

This sample describes how you can implement a configuration layer with angular. The configuration data can be loaded from sql server or JSON files. Its using the local storage.

SQL Server support

If you like to use the SQL Server support, then you must execute the following SQL Script on your local SQL Server.

To access the SQL Server configurations, you must start also the .NET Core WebAPI Project.

CREATE DATABASE ConfigSample;

USE ConfigSample;


CREATE TABLE AppSettings (
	AppSettingsId INT NOT NULL IDENTITY(1,1) PRIMARY KEY NONCLUSTERED,
	DefaultPrice money NOT NULL DEFAULT(1),
	DefaultUrl NVARCHAR(100) NOT NULL,
	IsFromLocalStorage BIT NOT NULL DEFAULT(0)
);

INSERT INTO AppSettings (DefaultPrice, DefaultUrl) VALUES (42, 'http://google.de');

About

Reusable Angular Services: Configuration Management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published