mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-05 13:02:54 +00:00
@@ -23,7 +23,7 @@ describe('Settings', () => {
|
|||||||
|
|
||||||
describe('settings-page', () => {
|
describe('settings-page', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
page.navigateTo('/settings');
|
page.navigateTo('#/settings');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a title saying Settings', () => {
|
it('should have a title saying Settings', () => {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {CommonModule, registerLocaleData} from '@angular/common';
|
import {CommonModule, registerLocaleData, LocationStrategy, HashLocationStrategy} from '@angular/common';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import localeDe from '@angular/common/locales/de';
|
import localeDe from '@angular/common/locales/de';
|
||||||
import {NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
@@ -42,11 +42,15 @@ export function createTranslateLoader(http: HttpClient) {
|
|||||||
bootstrap: [AppComponent],
|
bootstrap: [AppComponent],
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
imports: [
|
imports: [
|
||||||
|
AppRoutingModule,
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
CommonModule,
|
||||||
ConfigModule,
|
ConfigModule,
|
||||||
DataModule,
|
DataModule,
|
||||||
|
IonicModule.forRoot(),
|
||||||
MenuModule,
|
MenuModule,
|
||||||
SettingsModule,
|
SettingsModule,
|
||||||
|
StorageModule,
|
||||||
TranslateModule.forRoot({
|
TranslateModule.forRoot({
|
||||||
loader: {
|
loader: {
|
||||||
deps: [HttpClient],
|
deps: [HttpClient],
|
||||||
@@ -54,17 +58,20 @@ export function createTranslateLoader(http: HttpClient) {
|
|||||||
useFactory: (createTranslateLoader),
|
useFactory: (createTranslateLoader),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
IonicModule.forRoot(),
|
|
||||||
StorageModule,
|
|
||||||
AppRoutingModule,
|
|
||||||
CommonModule,
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
// use fake backend in place of Http service for backendless development
|
// use fake backend in place of Http service for backendless development
|
||||||
fakeBackendProvider,
|
fakeBackendProvider,
|
||||||
StatusBar,
|
StatusBar,
|
||||||
SplashScreen,
|
SplashScreen,
|
||||||
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy},
|
{
|
||||||
|
provide: RouteReuseStrategy,
|
||||||
|
useClass: IonicRouteStrategy
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provide: LocationStrategy,
|
||||||
|
useClass: HashLocationStrategy
|
||||||
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|||||||
Reference in New Issue
Block a user