Here is the defulat tab header template: <ng-template #defaultTabHeader let-tabs="tabsX"> <ul class="tab-panel-buttons" *ngIf="tabs"> <li [ngClass]="{selected: tab.selected}" (click)="selectTab(t…
Component: import { Component, Input, ChangeDetectionStrategy, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'stock-counter', changeDetection: ChangeDetectionStrategy.OnPush, template: ` <div class="stock-counter"> &l…
Angular 1 provided a mechanism to place content from your template inside of another template called transclusion. This concept has been brought into Angular 2 and was renamed to content projection and given super powers. In this lesson learn how to…
Oingial aritial --> Link Take away: import { Component, OnInit } from '@angular/core'; @Component({ selector : 'contacts-header', templateUrl: './header.component.html', styleUrls : ['./header.component.css'] }) export class HeaderComponent implement…
转载:https://rmohan.com/?p=4605 Change the default MySQL data directory with SELinux enabled This is a short article that explains how you change the default MySQL data directory and adjust SELinux to account for the changes. The article assumes that y…
每天抽出一些时间学习 Angular2 ,并准备把手头上的项目移植为 Angular2 , 不过今天又遇到了一些小问题. 准备写一个导航类适于管理后台常见的右边导航,如博客园的这种: ! 使用 g generate component nav-left 建立了一个名为 nav-left 的导航组件. 这里需要检查app,modile.ts中是否已经有你新建的组件.一般会自动添加,如果不存在需要添加引用: import { NavLeftComponent } from './nav-left/n…
https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux Your Debian Linux installation may include multiple python versions and thus also include multiple python binary executables. You can run the following l…
在整合laravel5.4 和vue2.1的时候遇到一个奇怪的问题 Uncaught SyntaxError: Unexpected token < Error: Loading chunk 0 failed. at HTMLScriptElement.onScriptComplete (app.js:99) [vue-router] Failed to resolve async component default: Error: Loading chunk 0 failed. Error:…
使用Vue-cli3.x开发环境中(router采用 history模式)出现Failed to resolve async component default: Error: Loading chunk {/d} failed.或者Uncaught SyntaxError: Unexpected token <错误 错误截图 解决方案 修改webpack的配置, 在vue.config.js文件中修改publicPath为'/'即解决问题 module.exports = { publicPa…
SIMULINK点击生成C代码报错 错误提示: Error encountered while executing PostCodeGenCommand for model 'RTW_sc3': Close all block diagrams (using 'bdclose all') before trying to change the default character encoding setting Caused by: Close all block diagrams (using…