Let's say you want to write a simple data bing app. when you type in a text box, somewhere in the application will show the result. In Angular 1, you can use ng-model to finish all those stuff,  but in angular 2, the concept behind has changed. <!--…
报错代码如下: <div ng-controller="HelloAngular"> <p>{{greeting.text}},angular</p> </div> function HelloAngular($scope){ $scope.greeting = { text:'hello' } } 在用angular1.3版本以前的时候,上面的代码运行是没有问题的.但是我更新版本后报错 Error: [ng:areq] http://e…
npm install -g angular-cli ng -v ng new project_name cd project_name ng serve 浏览器打开输入 localhost:4200…
A @Directive is used to add behavior to elements and components in your application. This makes @Directives ideal for behaviors such as "tracking" which don't belong in a Component, but do belong as a behavior in your application. import {Direct…
angular cli 创建项目和组件 ng new my-app --skip-install cd my-app cnpm install ng serve localhost:4200 angular cli热更新开发调试 ng serve -p 8080 angular cli测试打包 spec的测试文件 ng test 简明架构 站在巨人的肩膀上 amber cli -> angular cli -> webpack 安装 npm install -g @angular/cli 查看…
时间:2014年12月15日 14:15:10 /** * @license AngularJS v1.3.0-beta.15 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for produc…
一.HTML结构<div tabindex="-1" class="modal fade in active modal-map" role="dialog"> <div class="modal-dialog modal-md" aria-hidden="true" id="modal_sel_attend_overtime"> <div class=&q…
今天给angular新手介绍一个国内开源的ng学习网站http://www.ngnice.com/这是由一批ng爱好者在雪狼大叔的带领下共同开发完成,致力于帮助更多的ng新人,他们分别是: ckken,grahamle,NigelYao,asnowwolf,lightma,joeylin,FrankyYang,lrrluo, why520crazy,破狼,二当家, Ken, zxsoft, why520crazy, playing,天猪.jacobdong.以及一批后加入或审校未记名的社区爱好者…
Ngnice-国内ng学习网站2015-01-25 21:30 by 破狼, 534 阅读, 3 评论,收藏, 编辑 今天给angular新手介绍一个国内开源的ng学习网站http://www.ngnice.com/这是由一批ng爱好者在雪狼大叔的带领下共同开发完成,致力于帮助更多的ng新人,他们分别是: ckken,grahamle,NigelYao,asnowwolf,lightma,joeylin,FrankyYang,lrrluo, why520crazy,破狼,二当家, Ken, zx…
最近搞到手了一部Angular4的视频教程,这几天正好有时间变学了一下,可以用来做一些前后端分离的网站,也可以直接去打包web app. 环境&版本信息声明 运行ng -v @angular/cli: 1.2.0 node: 8.1.2 os: win32 x64 @angular/* 4.2.5 ... 好吧,那就顺便写个笔记/教程/备忘/博客咯 安装Angular脚手架 安装的时候选择全局安装 npm install @angular/cli -g 创建Angular项目 运行命令 ng n…