我正在使用 Ionic 和 Firebase 为当地一家餐馆开发食品订购应用程序。由于对任何后端语言的知识有限,而且懒得花时间在这上面,我想使用 Firebase 来存储数据,因为它拥有我需要的一切。我只是怀疑在整个应用程序的生产中使用它是否是个好主意。预计每天大约有 10-20 个订单(一开始),我也怀疑该应用程序每天会吃掉的空间,以及我应该订阅什么计划。
谢谢
我正在为一个项目尝试angular的ui-grid,但发现很难为我的网格构建一个自定义模板.当我检查源代码时,我得到了以下html模板,我将其保存到文件header-template.html并在配置网格时引用它.
<div class="ui-grid-header">
<div class="ui-grid-top-panel">
<div ui-grid-group-panel="" ng-show="grid.options.showGroupPanel" class="">
<div class="ui-grid-group-panel ng-scope">
<div ui-t="groupPanel.description" class="description " ng-show="groupings.length == 0">
Drag a column header here and drop it to group by that column.</div>
<ul ng-show="groupings.length > 0" class="ngGroupList ">
<!-- ngRepeat: group in configGroups -->
</ul>
</div>
</div>
<div class="ui-grid-header-viewport">
<div class="ui-grid-header-canvas">
<!--ngRepeat: col in colContainer.renderedColumns track by col.colDef.name -->
<div class="ui-grid-header-cell clearfix" ng-repeat="col in colContainer.renderedColumns track by col.colDef.name" ui-grid-header-cell="" col="col" render-index="$index" ng-style="$index === 0 && colContainer.columnStyle($index)">
<div ng-class="{ …
Run Code Online (Sandbox Code Playgroud) 我想在角度应用程序中使用jquery的UI布局插件.是否有角度指令已经执行此操作,或用于相同的目的?
试图安装离子,当添加Android平台时,我收到以下错误
Error: Please install Android target "android-19".
Hint: Run "android" from your command-line to open the SDK manager.
at /home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/lib/check_reqs.js:174:19
at _fulfilled (/home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:760:13)
at /home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:574:44
at flush (/home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Error: /home/algotree/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
Run Code Online (Sandbox Code Playgroud)
但我已经安装了android-21.如何在不安装target-19的情况下使用它?
我一直在使用visjs.org/docs/timeline/来显示数据的时间轴视图.我有一个指令,从API获取数据并使用该$compile
方法创建模板.
<vis-timeline timeline-data="apiData"></vis-timeline>
Run Code Online (Sandbox Code Playgroud)
并且linkFn
我正在迭代数据以创建模板的范围,该模板将作为vis的内容传递DataSet
.
link: function(scope,element,attr){
if(scope.roster.timelineData){
angular.forEach(scope.roster.timelineData, function(){
//Create a scope for the directive used for vis DataSet
var templateScope = scope.$new(true);//create an isolated scope
templateScope.name = 'templateData';
//this can be different for each iteration
var template = $compile('<timeline-item template-data="name"></timeline-item>')(templateScope)[0];
});
}
}
Run Code Online (Sandbox Code Playgroud)
我将编译后的模板作为vis的内容推DataSet
送到了时间轴.尽管此方法运行良好,但构建时间轴大约需要10秒钟.对时间线的任何编辑都需要10秒才能反映出来.
如果我添加一个普通模板而不是它,它确实会快速添加.如何提高编译模板的速度?