fix: update core and apply stricter tslint rules

This commit is contained in:
Michel Jonathan Schmitz
2019-07-10 12:38:29 +02:00
parent 03c317430a
commit 911492d064
67 changed files with 1291 additions and 507 deletions

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {CommonModule, registerLocaleData, LocationStrategy, HashLocationStrategy} from '@angular/common';
import {CommonModule, HashLocationStrategy, LocationStrategy, registerLocaleData} from '@angular/common';
import {HttpClient} from '@angular/common/http';
import localeDe from '@angular/common/locales/de';
import {NgModule} from '@angular/core';
@@ -34,10 +34,18 @@ import {StorageModule} from './modules/storage/storage.module';
registerLocaleData(localeDe);
/**
* TODO
*
* @param http TODO
*/
export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
/**
* TODO
*/
@NgModule({
bootstrap: [AppComponent],
declarations: [AppComponent],
@@ -66,11 +74,11 @@ export function createTranslateLoader(http: HttpClient) {
SplashScreen,
{
provide: RouteReuseStrategy,
useClass: IonicRouteStrategy
useClass: IonicRouteStrategy,
},
{
provide: LocationStrategy,
useClass: HashLocationStrategy
useClass: HashLocationStrategy,
},
],
})