Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "yoshrepublic"

Awesome. That worked. Thank you

I have upgraded my project from 5.3 to 6.5. Last year after some struggle I was able to create an Azure pipeline for the Angular project that still functions with the 5.3 version. I have duplicated the pipeline but it fails at the command line step below. Also, would it be a tall order to post a yml script somewhere for the whole deployment? I could only find bits and pieces of the information

steps:

  • script: | $(Build.SourcesDirectory)\node_modules.bin\ng.cmd build -prod

    displayName: 'Command Line Script'

    Output from sucessful run on 5.3

Generating script.
Script contents:
D:\a\1\s\node_modules\.bin\ng.cmd build -prod
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\2c8ff0ae-ed20-48dd-b653-9fdbd14795d8.cmd""

Failed run on 6.5

Generating script.
Script contents:
d:\a\1\s\node_modules\.bin\ng.cmd build -prod
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "d:\a\_temp\ef0297eb-5672-464f-abae-f24f5fcf1608.cmd""
Unknown option: '-d'
##[error]Cmd.exe exited with code '1'.
##[section]Finishing: Command Line Script

I have fat-fingered my own redirect. My apologies :(

I have a few public pages that need Angular functionality and no authentication. I have created a public module and added the routes to the root-routing module. The pages work fine until I log in. After I log in if I enter any of the public routes the page shows up for a second then I get redirected to notifications. I tried to do a redirect from ngOnInit on one of the pages but it does not work. Is there any way to disable the automatic redirect to notifications on certain routes? Here is the relevant portion of my root-routing.module.ts: I am on version 6.5

const routes: Routes = [
    { path: '', component: HomeComponent, data: {} },
    { path: 'faqs', component: PublicFaqsComponent, data: {} },
    { path: 'contact-us', component: ContactUsComponent, data: {} },
    { path: 'polls', component: PublicPollsComponent, data: {} },

    {
        path: 'account',
        loadChildren: 'account/account.module#AccountModule', //Lazy load account module
        data: { preload: true }
    }
];
Showing 11 to 14 of 14 entries