Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

HashLocationStrategy

// routing

export const routing = RouterModule.forRoot(routes, { useHash: true });
//for enabling production mode, before loading root NgModule,

import { enableProdMode } from '@angular/core';

if (<condition to enable production mode>) {
   enableProdMode();
}
 
PREVIOUS NEXT
Tagged: #HashLocationStrategy
ADD COMMENT
Topic
Name
1+8 =