components

vuepress - How to custom location of components directory '.vuepress/components' with register-components?

允我心安 提交于 2019-12-05 11:56:49
I tried to add custom directory of components in vuepress with plugin register/components but it seems not possible. I tried with module.exports = { title: 'Hello VuePress', description: 'Just playing around', plugins: [ [ 'register-components', { componentDir: '../components' } ] ] } with this architecture (I want to select "components" directory) But it seem doesn't work because the component is not recognized I think that I wrote well my component in my base-button.md Is that someone could help me to tell me steps to get there? Thanks a lot You can register components globally in enhanceApp

Using UIPickerView with multiple components in swift

ⅰ亾dé卋堺 提交于 2019-12-05 11:39:16
Hi there I have been trying to get this working for ages with no success so apologies if this seems easy for you guys. I want to use a 3 wheel UIPickerView - The 1st wheel didSelectRow value will be used to change the array for the remaining two wheels but they will be the same as it is a conversion app. It seems to throw me an error up when populating the wheels saying that Anyobject is not identical to String. I cannot see anything wrong but I know it is something basic I have missed. Any pointers would be much appreciated. Motty. // ViewController.swift // picker test import UIKit class

Angular2 unsafe resource URL in iFrame with DomSanitationService

…衆ロ難τιáo~ 提交于 2019-12-05 11:38:13
Background: I'm working on a proof of concept for a transition strategy we're investigating that will pull in the "old" webapp into an iFrame while we work on converting existing functionality to Angular. Issue: The issue I'm having is trying to set the src tag on an iFrame. I'm attempting to use the DomSanitationService component, but I continue to get the "unsafe URL" error message even with this enabled. Code: Here is what I currently have; I have attempted to scrub the URL in the component after it receives the URL from a service. http.component.ts import { Component, OnInit } from '

Angular 2 - Lifecycle hooks for lazy loaded modules

落花浮王杯 提交于 2019-12-05 10:56:09
I am in the process of developing an application using lazy loaded Angular modules. I have a simple question: Is it possible to catch an event when a module is loaded? For example OnInit. This link explains life cycle hooks but it is only for components: Lifecycle hooks for components I cant find any documentation that explains how to hook in for modules. Does someone have an idea of how to solve this? Thanks The constructor of the lazy loaded module should do that @NgModule({...}) export class MyLazyModule { constructor(/* service injection here if required */) { console.log('lazy module

Why is Fluent NHibernate ignoring my unique constraint on a component?

自古美人都是妖i 提交于 2019-12-05 10:11:55
In my map I have: Component( x => x.ExposureKey, m => { m.Map(x => x.AsOfDate).Not.Nullable(); m.Map(x => x.ExposureId).Length(30).Not.Nullable(); } ).Unique(); The relevant output from the HBM is <component name="ExposureKey" insert="true" update="true" optimistic-lock="true" class="Some.Namespace.CreditExposureKey, Some.Namespace, Version=0.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa"> <property name="AsOfDate" type="System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <column name="AsOfDate" not-null="true"/> </property> <property name=

Positioning Hints for Components in Delphi

不打扰是莪最后的温柔 提交于 2019-12-05 09:48:41
Using Delphi XE6, I am creating a TdateTimePicker-like control, but for a couple of reasons, I am using a TButtonedEdit which has a TMonthCalendar "embedded" within it. A full bare-bones demo is: I have got it going as desired with the month calendar being SHOWn when the right button is clicked ( with Style=WS_POPUP ) and I HIDE it when a selection is made, the user navigates away, ESCapes etc. unit DateEditBare1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.ImgList, Vcl

Joomla component not appearing in the menu item types

纵然是瞬间 提交于 2019-12-05 09:36:24
I just followed the joomla tutorials on how to create the "perfect" MVC joomla component. However, my problem is that I don't know yet how to assign it to a menu. I thought that my component would then just show up when I select a "menu item type", but my component is not on this list. I've made some research on Google, but I cannot find the answer... Do I have to create a metadata.xml file or something similar ? Thanks in advance for your answers !! To create "views" for your component, you have to create some xml files. Inside the templates folder in the frontend part of your component

Angular 6 custom lib No provider for ComponentFactoryResolver

≡放荡痞女 提交于 2019-12-05 09:24:04
I rewriting library from NG4 -> NG6 (using angular-cli 6). This lib change dynamicli angular components so I using ComponentFactoryResolver and here I got stuck. When I add ComponentFactoryResolver to constructor: constructor( private componentFactoryResolver: ComponentFactoryResolver ) {} and build lib (with success) in target app (I add my lib in package.json from local file) I have this error: StaticInjectorError(AppModule)[MyLibComponent-> ComponentFactoryResolver]: StaticInjectorError(Platform: core)[MyLibComponent-> ComponentFactoryResolver]: NullInjectorError: No provider for

Angular2, why functions are called each time I move the mouse

孤人 提交于 2019-12-05 09:23:26
I use Angular2 seed ( https://github.com/mgechev/angular2-seed ), and I encounter a problem. Indeed, in my template html, I use some bindings like {{test}} with a variable test in the component, and {{getTest()}} which calls the getTest() function. If I use a console log in getTest(), each time I move the mouse, I get a log. Is it the desired behaviour ? I was thinking it will update only if the value changes, like with an observer. Did I have to use an observer to avoid this call each time ? Thanks you. Angular2 change detection checks if bindings are updated every time it is run and it is

Good GIS Software or Components for Windows PC in .NET? [closed]

半腔热情 提交于 2019-12-05 09:22:11
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Last week i searched for good free or opensource solutions and component for GIS (Geographical Information Systems) I founded some system but no one fill my requirements SharpMap is very buggy software Gmap.net is very slow MapWindow have a very complex structure and is very buggy. I founded uDIG but is in java, i need a solution in vb.net or c#. Anyone know a good solution that fill my requirements or have