我是Angular的初学者,我想知道如何创建Angular 5 文件上传部分,我试着找到任何教程或文档,但我什么都没看到.对此有何看法?我正在尝试ng4文件,但它不适用于Angular 5
林开发我的大学的一些应用程序,用于即时消息Bootstrap-4IM使4部分
标题,内容顶发 ,内容僵尸脂肪 ,主要内容和页脚 IM尝试fixed header,content-top-fat,content-bot-fat和footer我需要滚动只是main-content一部分,即时通讯之后添加侧栏导航菜单它不是一个好看它总是overlap你可以理解我的代码和图像,请帮我解决这个问题如何修复这个部分和滚动只main-content部分,我的main-content部分不能滚动,
谢谢
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}Run Code Online (Sandbox Code Playgroud)
body.mainbody {
overflow: hidden;
font: 13px/1.7em 'sans-serif';
font-family: sans-serif;
}
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
.bg-inverse {
background-color: grey !important;
}
.header {
width: 100%;
height: 5%;
background: …Run Code Online (Sandbox Code Playgroud)我试图添加ion-inputfor maxlength,max属性但它没有按预期工作.
<ion-input type="number" placeholder="*" maxlength="1"></ion-input>
<ion-input type="number" placeholder="*" max="1"></ion-input>
Run Code Online (Sandbox Code Playgroud)
有谁知道相同的解决方案?
谢谢
我正在使用`bootstrap@4.0.0-beta'来处理此表单.在这里,我想创建下拉菜单,如下图所示,就像在材料设计中一样,但我想使用bootstrap这样做.我正在尝试使用此代码,但它无法正常工作.有谁知道如何制作这个下拉菜单.请帮我解决这个问题.
谢谢
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
示例图片
/* form starting stylings ------------------------------- */
.group {
position:relative;
margin-bottom:45px;
}
input {
font-size:18px;
padding:10px 10px 10px 5px;
display:block;
width:300px;
border:none;
border-bottom:1px solid #757575;
}
input:focus { outline:none; }
/* LABEL ======================================= */
label {
color:#999;
font-size:18px;
font-weight:normal;
position:absolute;
pointer-events:none;
left:5px;
top:10px;
transition:0.2s ease all;
-moz-transition:0.2s …Run Code Online (Sandbox Code Playgroud)我正在逐步关注这个ApNg2Fullcalendar安装结构,我使用的是Angular 5,
node_modules/ap-angular2-fullcalendar/src/calendar/calendar.d.ts(3,10):错误TS2305:模块''fullcalendar''没有导出成员'选项'.node_modules/fullcalendar/dist/fullcalendar.d.ts(695,36):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(696,29):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(697,20):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(759,22):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(775,50):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(988,23):错误TS2304:找不到名称'JQueryEventObject'.node_modules/fullcalendar /距离/ fullcalendar.d.ts(1401,70):错误TS2304:找不到名称 'JQueryAjaxSettings'.node_modules/fullcalendar/dist/fullcalendar.d.ts(1603,50):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(1623,50):错误TS2304:找不到名称'JQueryPromise'.node_modules/fullcalendar/dist/fullcalendar.d.ts(2588,50):错误TS2304:找不到名称'JQueryPromise'.
怎么解决?我的index.component.ts
import { Component, } from '@angular/core';
import 'Fullcalendar';
@Component({
selector: 'app-index',
templateUrl: './index.component.html',
styleUrls: ['./index.component.css']
})
export class IndexComponent {
title = 'app';
calendarOptions:Object = {
height: 'parent',
fixedWeekCount : false,
defaultDate: '2016-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
events: [
{
title: 'All Day Event',
start: '2016-09-01'
},
{
title: 'Long Event',
start: '2016-09-07',
end: '2016-09-10'
},
{
id: 999,
title: 'Repeating …Run Code Online (Sandbox Code Playgroud) 我正在使用Ionic3我的大学项目,我添加了我的部分设置app.html并试图链接(click)="home()"但它不适合我.
我收到了以下错误
错误:没有NavController的提供程序!atjectionError(http:// localhost:8100/build/vendor.js:1527:90)at ReflectorInjector_的noProviderError(http:// localhost:8100/build/vendor.js:1565:12).ReflectiveInjector中的throwOrNull(http:// localhost:8100/build/vendor.js:3007:19).ReflectiveInjector中的getByKeyDefault(http:// localhost:8100/build/vendor.js:3046:25).getByKey(http:// localhost:8100/build/vendor.js:2978:25)在reflectiveInjector .get(http:// localhost:8100/build/vendor.js:2847:21)at resolveNgModuleDep(http:// localhost:8100/build/vendor.js:9847:25)在resolveDep的NgModuleRef_.get(http:// localhost:8100/build/vendor.js:10935:16)(http:// localhost:8100/build/vendor.js:11438:45)at createClass(http:// localhost:8100/build/vendor.js:11302:32)
app.html
<!--------------------------------------Main Navigation--------------------------->
<ion-menu id="myMenu" [content]="content" side="right" persistent="true" [class]="selectedTheme">
<ion-header>
<ion-toolbar>
<ion-grid>
<ion-row>
<ion-col col-6>
<div text-left style="" class="app-listname">
Project</div>
</ion-col>
<ion-col (click)="home()">
<div class="tether-setting" style="text-align: right;font-size: 2rem; color:#a57958;">
<ion-icon …Run Code Online (Sandbox Code Playgroud) 我Angular SVG round progressbar为我的离子项目阅读并安装了这个,但它对我不起作用,
https://github.com/crisbeto/angular-svg-round-progressbar
如何正确添加此页面?请帮我解决这个显示此错误
Run Code Online (Sandbox Code Playgroud)Error: Template parse errors: Can't bind to 'current' since it isn't a known property of 'round-progress'. 1. If 'round-progress' is an Angular component and it has 'current' input, then verify that it is part of this module. 2. If 'round-progress' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component压制此消息.3.要允许任何属性将"NO_ERRORS_SCHEMA"添加到此组件的"@NgModule.schemas".("
Run Code Online (Sandbox Code Playgroud)<round-progress [ERROR ->][current]="48" [max]="100"></round-progress> </ion-content> ")
谢谢
我的页面为我添加了home.html
<round-progress
[current]="current"
[max]="max"
[color]="'#45ccce'"
[background]="'#eaeaea'"
[radius]="125"
[stroke]="20"
[semicircle]="true"
[rounded]="true" …Run Code Online (Sandbox Code Playgroud) 我使用离子3作为我的移动应用程序,我的输入字段有一些问题,不会自动移动到下一个字段.例如,当我单击第一个输入字段并填充第一个输入字段时,光标不会移动到下一个字段.如何正确地做到这一点?
<ion-grid>
<ion-row>
<ion-col>
<ion-item >
<ion-input type="tel" placeholder="*" maxlength="1" tabindex="1" ></ion-input>
</ion-item>
</ion-col>
<ion-col >
<ion-item>
<ion-input type="tel" placeholder="*" maxlength="1" tabindex="2" ></ion-input>
</ion-item>
</ion-col>
<ion-col >
<ion-item>
<ion-input type="tel" placeholder="*" maxlength="1" tabindex="3" ></ion-input>
</ion-item>
</ion-col>
<ion-col >
<ion-item>
<ion-input type="tel" placeholder="*" maxlength="1" tabindex="4" ></ion-input>
</ion-item>
</ion-col>
</ion-row>
</ion-grid>
Run Code Online (Sandbox Code Playgroud) 我有一个多语种网站.在切换到"印度"之后,有没有办法可以将其更改logo.png为不同的.png?我现在正在使用polylang插件.我尝试了这个解决方案,但它没有用 - https://support.pojo.me/docs/polylang-change-logo-every-language/.
有没有人知道如何解决这个问题?
我的代码
function pojo_polylang_get_multilang_logo( $value ) {
if ( function_exists( 'pll_current_language' ) ) {
$logos = array(
'en' => 'logo-en.png',
'in' => 'logo-in.png',
);
$default_logo = $logos['en'];
$current_lang = pll_current_language();
$assets_url = get_stylesheet_directory_uri() . '/assets/images/';
if ( isset( $logos[ $current_lang ] ) )
$value = $assets_url . $logos[ $current_lang ];
else
$value = $assets_url . $default_logo;
}
return $value;
}
add_filter( 'theme_mod_image_logo', 'pojo_polylang_get_multilang_logo' );
Run Code Online (Sandbox Code Playgroud) 我在将一个信号集成到我的 iOS 应用程序时遇到了一个问题,我遵循了离子指南和一个信号中的所有内容,但收到此错误
错误:在使用 OneSignal 推送注册过程中遇到错误:错误域=OneSignalError Code=400 "(null)" UserInfo={returned={ errors = ( "app_id not found。您可能缺少 Content-Type: application/json 标头。 "); }}
我确定app_id是正确的
任何机构帮助这是我的代码:
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
if(platform.is('ios')){
console.log('platform is ios using onsignail for ios');
this.oneSignal.startInit('bae0c3e1-bc4e-49ab-9274-18635XXXXX', );
this.oneSignal.inFocusDisplaying(this.oneSignal.OSInFocusDisplayOption.InAppAlert);
this.oneSignal.handleNotificationReceived().subscribe(() => {
// do something when notification is received
});
this.oneSignal.handleNotificationOpened().subscribe(() => {
// …Run Code Online (Sandbox Code Playgroud) angular ×3
ionic3 ×3
css ×2
typescript ×2
bootstrap-4 ×1
fullcalendar ×1
html ×1
ionic2 ×1
onesignal ×1
php ×1
polylang ×1
wordpress ×1
xcode ×1