TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sharad Gupta
97
19.7k
8.6m
Not compile code of angular 5 in prod mode.
Apr 5 2018 1:58 AM
Hi all,
I am using this code
import
{ NgModule, ModuleWithProviders } from
'@angular/core'
;
import
{ Routes, RouterModule } from
'@angular/router'
;
import
{ MainModule } from
'./main/main.module'
;
import
{ AuthModule } from
'./auth/auth.module'
;
const
routes: Routes = [
{path:
''
, redirectTo:
'auth'
, pathMatch:
'full'
},
{path:
'login'
, redirectTo:
'auth'
, pathMatch:
'full'
},
{path:
'auth'
, loadChildren: () => AuthModule }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
})
export
class
AppRoutingModule { }
It works with ng build but did not work with prod mode 'ng build --prod'
Reply
Answers (
2
)
Types of authentication mechanism in angular 2
Not able to setup angular application