答案 0 :(得分:0)
我设法使用yasinuslu:blaze-meta。您的组件控制器:
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import uiRouter from 'angular-ui-router';
import { Meteor } from 'meteor/meteor';
import { Meta } from 'meteor/yasinuslu:blaze-meta';
//..
class PartyDetailsCtrl {
constructor($stateParams, $scope) {
'ngInject';
//..
Meta.config({
options: {
title: "Default Title",
suffix: "Socially",
separator: " — "
}
})
Meta.set({
name: 'name',
property: 'description',
content: 'Meta description'
});
Meta.setTitle("Party Details");
}
//..
}
//..
我相信Meta.config({})
可以放在您应用的.run
块中。希望有所帮助!