This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "key": "shopping-cart", | |
| "load": { | |
| "remote": { | |
| "key": "shopping_cart", | |
| "entry": "assets/apps/shopping-cart/shopping-cart/remoteEntry.js", | |
| "exposedModule": "./app", | |
| "development": { | |
| "entry": "http://localhost:4203/remoteEntry.js", | |
| "active": false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mat-toolbar color="primary"> | |
| <button | |
| mat-icon-button | |
| class="example-icon" | |
| aria-label="Example icon-button with menu icon" | |
| > | |
| <mat-icon>menu</mat-icon> | |
| </button> | |
| <span>Micro Frontends Sample</span> | |
| <span class="example-spacer"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "apps": [ | |
| { | |
| "key": "shopping-cart-button", | |
| "load": { | |
| "remote": { | |
| "key": "shopping_cart_button", | |
| "entry": "assets/apps/shopping-cart/shopping-cart-button/remoteEntry.js", | |
| "exposedModule": "./app", | |
| "development": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "key": "shell", | |
| "isDefault": true, | |
| "load": { | |
| "remote": { | |
| "entry": "assets/apps/shell/remoteEntry.js", | |
| "exposedModule": "./app", | |
| "development": { | |
| "entry": "http://localhost:4201/remoteEntry.js", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class LayoutResolver { | |
| Resolve(key) { | |
| switch (key) { | |
| case "NarikListUi": | |
| return { | |
| layout: "", | |
| layoutUrl: "./src/app/layouts/list-layout.html", | |
| }; | |
| case "NarikEditUi": | |
| return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- #layout:'widget2' --> | |
| <ng-template #widgetContent> | |
| Hi! I'm Widget of type 1! | |
| <div>counter: {{ counter }}</div> | |
| <div class="mb-2"> | |
| <narik-button label="add to Content" (click)="counter=counter+1"> | |
| </narik-button> | |
| </div> | |
| </ng-template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component } from "@angular/core"; | |
| @Component({ | |
| selector: "widget", | |
| templateUrl: "widget.component.html" | |
| }) | |
| export class WidgetType { | |
| @Input() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="card m-2"> | |
| <div class="card-body"> | |
| <div narik-section="widgetTitle"> | |
| <h5 class="card-title">{{ title }}</h5> | |
| </div> | |
| <div narik-section="widgetContent"></div> | |
| <div class="card-footer"> | |
| <div narik-section="widgetFooter"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require("path"); | |
| const AngularCompilerPlugin = require("@ngtools/webpack/src"); | |
| const LayoutResolver = require("./layout-resolver"); | |
| module.exports = (config) => { | |
| const index = config.plugins.findIndex((p) => { | |
| return p instanceof AngularCompilerPlugin.AngularCompilerPlugin; | |
| }); | |
| const oldOptions = config.plugins[index]._options; | |
| oldOptions.directTemplateLoading = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "key": "classValidation", | |
| "fields": [ | |
| { | |
| "name": "email" | |
| }, | |
| { | |
| "name": "hello" | |
| } | |
| ], |
NewerOlder