更新angular2后,他们不再从angular2-highcharts导入Highcharts。 我该如何设置选项? Plunker
我想添加
add_action( 'post_updated', 'process_after_product_edited', 10, 3 );
/**
* Process work when the product has been edited.
*
* @since 1.0.0
*
* @param int $post_id Post ID.
* @param WP_Post $post_after Post object following the update.
* @param WP_Post $post_before Post object before the update.
*/
function process_after_product_edited( $post_id, $post_after, $post_before ) {
if ( ! is_post_being_updated( $post_id ) ) {
return;
}
if ( $post_after->post_type != 'product' ) {
return;
}
// now you can do your work
}
由于
答案 0 :(得分:2)
import { Component } from '@angular/core';
declare var require: any;
const Highcharts = require('highcharts');
Highcharts.setOptions({ lang: { thousandsSep: ',' } });
export class AppComponent {
...
答案 1 :(得分:0)
只需将它添加到构造函数内的文字中:(在app / main.ts中),在plunker中。
'(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'