- 浏览: 2560111 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Build Fishing Record(1)Meteor AngularJS Bootstrap Ionic Angular Material
1 Fundament
Create the First UI Project, Working on Meteor
> meteor create smart-fisher
Disable Blaze and other template thing
> meteor remove blaze-html-templates
> meteor remove ecmascript
Add AngularJS
> meteor add angular
Following this documents to integrate angularJS and meteor
https://www.meteor.com/tutorials/angular/templates
<head><body><template> get parsed from all the html
Share JS between client and server
Tasks = new Mongo.Collection('tasks');
Client side codes
if (Meteor.isClient) {
// This code only runs on the client
angular.module('simple-todos',['angular-meteor']);
angular.module('simple-todos').controller('TodosListCtrl', ['$scope', '$meteor',
function ($scope, $meteor) {
$scope.tasks = $meteor.collection(Tasks);
}]);
}
Try to add more data in mongo to see what happened.
> meteor mongo
MongoDB shell version: 2.6.7
connecting to: 127.0.0.1:3001/meteor
> db.tasks.insert( { text: "nodejs and frontend master", createdAt: new Date() } );
> db.tasks.find();
{ "_id" : ObjectId("5679aa466ef681a112809143"), "text" : "nodejs and frontend master", "createdAt" : ISODate("2015-12-22T19:53:42.867Z") }
Add One Item
$scope.addTask = function (newTask) {
$scope.tasks.push( {
text: newTask,
createdAt: new Date() }
);
};
List and Remove Item
<header>
<h1>Todo List</h1>
<form class="new-task" ng-submit="addTask(newTask); newTask='';">
<input ng-model="newTask" type="text"
name="text" placeholder="Type to add new tasks" />
</form>
</header>
<ul>
<li ng-repeat="task in tasks" ng-class="{'checked': task.checked}">
<button class="delete" ng-click="tasks.remove(task)">×</button>
<input type="checkbox" ng-model="task.checked" class="toggle-checked" />
<span class="text">{{task.text}}</span>
</li>
</ul>
Try to Start and Debug on iOS
> meteor install-sdk ios
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-iOS-on-Mac
> meteor add-platform ios
> meteor run ios
That is only on emulator
Try to Start on Android
> meteor install-sdk android
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Mac
Set the ANDROID_HOME, usually android studio install that in ~/Library/Android/sdk by default. And we need add
$ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to my PATH.
And we need to create one emulator as well, Create a Virtual Device
We need install the API 22 manually. [Configure] —> [SDK Manager] Select the API 22
> meteor add-platform android
> meteor run android
Check device List
> adb devices
List of devices attached
192.168.56.101:5555 device
Genymotion Start and Create one Virtual Device
> meteor run android-device
Meteor thinks that is a real device.
Running on real device
https://www.meteor.com/tutorials/angular/running-on-mobile
$ne should be not equal
$scope.$watch('hideCompleted', function() {
if ($scope.hideCompleted){
$scope.query = {checked: {$ne: true}};
}
else{
$scope.query = {};
}
});
$scope.incompleteCount = function () {
return Tasks.find({ checked: {$ne: true} }).count();
};
<h1>Todo List ( {{ incompleteCount() }} )</h1>
<label class="hide-completed">
<input type="checkbox" ng-model="hideCompleted"/>
Hide Completed Tasks
</label>
user account https://www.meteor.com/tutorials/angular/adding-user-accounts
security https://www.meteor.com/tutorials/angular/security-with-methods
publish and subscribe https://www.meteor.com/tutorials/angular/publish-and-subscribe
More Example
http://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping
http://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping
strongest
http://meteor-ionic.meteor.com/
https://github.com/meteoric/meteor-ionic
2 Start to Try with Mobile Angular UI
http://mobileangularui.com/docs/
Install the demo codes and check
> npm install -g bower yo gulp generator-mobileangularui
https://atmospherejs.com/krysfree/mobile-angular-ui
I need to understand how to integrate mobile angular UI to meteor.
Install meteor
> curl https://install.meteor.com/ | sh
Angular Material
https://material.angularjs.org/latest/demo/content
https://github.com/Urigo/meteor-angular-socially
Install the brew
http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/
Install the image tool
> brew install graphicsmagick
References:
https://www.meteor.com/tutorials/angular/filtering-collections
http://mobileangularui.com/
https://github.com/mcasimir/mobile-angular-ui
http://ionicframework.com/examples/
AngularJS Experience for PhoneCat
http://sillycat.iteye.com/blog/2007538
http://sillycat.iteye.com/blog/2007546
http://sillycat.iteye.com/blog/2007988
1 Fundament
Create the First UI Project, Working on Meteor
> meteor create smart-fisher
Disable Blaze and other template thing
> meteor remove blaze-html-templates
> meteor remove ecmascript
Add AngularJS
> meteor add angular
Following this documents to integrate angularJS and meteor
https://www.meteor.com/tutorials/angular/templates
<head><body><template> get parsed from all the html
Share JS between client and server
Tasks = new Mongo.Collection('tasks');
Client side codes
if (Meteor.isClient) {
// This code only runs on the client
angular.module('simple-todos',['angular-meteor']);
angular.module('simple-todos').controller('TodosListCtrl', ['$scope', '$meteor',
function ($scope, $meteor) {
$scope.tasks = $meteor.collection(Tasks);
}]);
}
Try to add more data in mongo to see what happened.
> meteor mongo
MongoDB shell version: 2.6.7
connecting to: 127.0.0.1:3001/meteor
> db.tasks.insert( { text: "nodejs and frontend master", createdAt: new Date() } );
> db.tasks.find();
{ "_id" : ObjectId("5679aa466ef681a112809143"), "text" : "nodejs and frontend master", "createdAt" : ISODate("2015-12-22T19:53:42.867Z") }
Add One Item
$scope.addTask = function (newTask) {
$scope.tasks.push( {
text: newTask,
createdAt: new Date() }
);
};
List and Remove Item
<header>
<h1>Todo List</h1>
<form class="new-task" ng-submit="addTask(newTask); newTask='';">
<input ng-model="newTask" type="text"
name="text" placeholder="Type to add new tasks" />
</form>
</header>
<ul>
<li ng-repeat="task in tasks" ng-class="{'checked': task.checked}">
<button class="delete" ng-click="tasks.remove(task)">×</button>
<input type="checkbox" ng-model="task.checked" class="toggle-checked" />
<span class="text">{{task.text}}</span>
</li>
</ul>
Try to Start and Debug on iOS
> meteor install-sdk ios
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-iOS-on-Mac
> meteor add-platform ios
> meteor run ios
That is only on emulator
Try to Start on Android
> meteor install-sdk android
Please follow the instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Mac
Set the ANDROID_HOME, usually android studio install that in ~/Library/Android/sdk by default. And we need add
$ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to my PATH.
And we need to create one emulator as well, Create a Virtual Device
We need install the API 22 manually. [Configure] —> [SDK Manager] Select the API 22
> meteor add-platform android
> meteor run android
Check device List
> adb devices
List of devices attached
192.168.56.101:5555 device
Genymotion Start and Create one Virtual Device
> meteor run android-device
Meteor thinks that is a real device.
Running on real device
https://www.meteor.com/tutorials/angular/running-on-mobile
$ne should be not equal
$scope.$watch('hideCompleted', function() {
if ($scope.hideCompleted){
$scope.query = {checked: {$ne: true}};
}
else{
$scope.query = {};
}
});
$scope.incompleteCount = function () {
return Tasks.find({ checked: {$ne: true} }).count();
};
<h1>Todo List ( {{ incompleteCount() }} )</h1>
<label class="hide-completed">
<input type="checkbox" ng-model="hideCompleted"/>
Hide Completed Tasks
</label>
user account https://www.meteor.com/tutorials/angular/adding-user-accounts
security https://www.meteor.com/tutorials/angular/security-with-methods
publish and subscribe https://www.meteor.com/tutorials/angular/publish-and-subscribe
More Example
http://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping
http://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping
strongest
http://meteor-ionic.meteor.com/
https://github.com/meteoric/meteor-ionic
2 Start to Try with Mobile Angular UI
http://mobileangularui.com/docs/
Install the demo codes and check
> npm install -g bower yo gulp generator-mobileangularui
https://atmospherejs.com/krysfree/mobile-angular-ui
I need to understand how to integrate mobile angular UI to meteor.
Install meteor
> curl https://install.meteor.com/ | sh
Angular Material
https://material.angularjs.org/latest/demo/content
https://github.com/Urigo/meteor-angular-socially
Install the brew
http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/
Install the image tool
> brew install graphicsmagick
References:
https://www.meteor.com/tutorials/angular/filtering-collections
http://mobileangularui.com/
https://github.com/mcasimir/mobile-angular-ui
http://ionicframework.com/examples/
AngularJS Experience for PhoneCat
http://sillycat.iteye.com/blog/2007538
http://sillycat.iteye.com/blog/2007546
http://sillycat.iteye.com/blog/2007988
发表评论
-
Stop Update Here
2020-04-28 09:00 322I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 484NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 374Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 375Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 345Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 436Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 444Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 381Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 463VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 394Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 487NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 432Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 342Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 255GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 455GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 332GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 318Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 324Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 302Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 315Serverless with NodeJS and Tenc ...
相关推荐
https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64
【标题】"meteor-angular-material-todomvc"是一个基于Meteor、Angular Material框架的简单TODO应用程序示例,它展示了如何将这两个强大的技术结合在一起构建一个功能齐全的MVC(模型-视图-控制器)应用。...
1. 添加包到项目:在Meteor命令行工具中,输入`meteor add meteor-bootstrap-toggle`,这将自动将包及其依赖引入到你的项目中。 2. 在HTML模板中,你可以像使用普通Bootstrap元素一样,添加Bootstrap Toggle的HTML...
【标题】"Meteor-Bootstrap-Components" 是一个专门为 Meteor 框架设计的 Bootstrap 组件库,它旨在简化在 Meteor 应用程序中使用 Bootstrap 的过程。Bootstrap 是一个流行的前端 UI 工具包,提供了丰富的预设样式和...
"Angle-3.4-meteor-angular"项目正是这样的一个集成,它结合了AngularJS(Angular 1.x版本)与Meteor框架,为开发者提供了构建全栈Web应用的强大工具。本文将深入探讨这两个组件以及它们如何协同工作,以帮助你更好...
提供AngularJS和angular2两种版本的JS框架支持。主题内置了引导页模板和各个版本的seed模板。 该模板提供了整套的前端解决方案,并使用了npmbower等一系列工具进行了对前添加自定义属性段代码的管理,实现了代码热...
脚步: $ meteor # won't work# While Building the application:# meteor-bootstrap-sass-bug.sass: Scss compiler error: undefined# /tmp/meteor-bootstrap-sass-bug/meteor-bootstrap-sass-bug.sass:1: error: ...
在本文中,我们将深入探讨"meteor-bootstrap-tagsinput"这一流星包裹的Bootstrap标签输入组件,它为开发者提供了在Meteor应用中使用Bootstrap标签输入功能的可能性。 "meteor-bootstrap-tagsinput"是一个专为Meteor...
本文将深入探讨"meteor-angular-strap"项目,它是如何为Meteor和AngularJS搭建桥梁,使开发者能够利用AngularJS的原生指令来构建Bootstrap 3的应用。 "meteor-angular-strap"是一个专为Meteor定制的AngularJS库,它...
《 Meteor与Bootstrap主题应用详解 》 在Web开发领域,Meteor和Bootstrap是两个非常重要的工具。Meteor是一个全栈JavaScript框架,用于快速构建实时的、可伸缩的Web应用,而Bootstrap则是一个流行的前端开发框架,...
T00rk / bootstrap-material-datepicker的流星包 用于自举材料设计的日期时间选择器。 致谢 TOOrk / bootstrap-material-datepicker( ) fezvrasta / bootstrap-material-design( ) 先决条件 下划线 momentjs:...
《引导悬停下拉菜单:Meteor与Bootstrap的完美结合》 在Web开发中,交互性的提升是提升用户体验的关键因素之一。Bootstrap作为一个流行的前端框架,以其丰富的组件和易用性深受开发者喜爱,其中下拉菜单(Dropdown...
Bootstrap Material Design 现在与 Meteor 本地集成。 请用 (全包) 或者 (无 Glyphicons - 如果您想使用其他图标集,例如 Font Awesome,则很有用)。
总而言之,angle-admin-v3.5.1(meteor-angular版)是基于 Meteor 和 Angular 的一款强大且美观的后台管理模板,它结合了Bootstrap的灵活性和H5Theme的高品质设计。对于寻求高效开发解决方案的团队来说,这是一个值得...
“meteor-bootstrap-calendar”是一个专为Meteor.js框架设计的日历组件,它基于Serhioromano的Bootstrap Calendar进行封装,为开发者提供了一种简单、直观的方式来集成日历功能到他们的应用程序中。这个组件充分利用...
- Meteor 提供了方便的 API 供 AngularJS 调用,可以通过 meteor-angular 插件实现两者的无缝对接。 - 在 Meteor 中创建的数据模型可以直接在 AngularJS 的控制器中使用,双向数据绑定使得数据的改变能立即反映到...
6. **打包发布**:完成开发后,可以使用Meteor的`meteor build`命令生成适用于不同平台的打包文件,再配合Ionic的`ionic capacitor run`命令,将应用部署到Android或iOS设备上。 通过以上步骤,我们就可以构建出一...
Angular-angular-meteor.zip,角度和流星-完美的堆栈角度流星编译器,Angularjs于2016年发布,是Angularjs的重写版。它专注于良好的移动开发、模块化和改进的依赖注入。angular的设计目的是全面解决开发人员的web应用...