Skip to content

Commit

Permalink
Merge pull request #15910 from primefaces/issue-15902
Browse files Browse the repository at this point in the history
Fixed #15902 - PrimeNG Button Link stackblitz not working
  • Loading branch information
cetincakiroglu committed Jun 27, 2024
2 parents 1a7c2cf + 4e06332 commit 7aae611
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/app/showcase/layout/doc/codeeditor/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,15 @@ const getAngularApp = (props: Props = {}) => {
</html>`;

const main_ts = `import { bootstrapApplication } from '@angular/platform-browser';
import { ${componentName} } from './app/${selector}';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { ${componentName} } from './app/${selector}';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { Routes, provideRouter } from '@angular/router';
bootstrapApplication(${componentName}, {
providers: [provideAnimationsAsync()],
}).catch((err) => console.error(err));`;
const routes: Routes = [];
bootstrapApplication(${componentName}, {
providers: [provideAnimationsAsync(), provideRouter(routes)],
}).catch((err) => console.error(err));`;

const defaultFiles = {
'src/main.ts': { content: main_ts },
Expand Down

0 comments on commit 7aae611

Please sign in to comment.