54 |
55 |
56 |
57 | TODO项目,后台使用node,express,mongoose提供restful[GET,POST,PUT,DELETE]风格的API,前台使用angular,bootstrap 58 |
59 |├── angularjs-douban-movie ├── assets │ └── css │ │ └── style.css ├── src │ ├── sass │ │ ├── _modules.scss │ │ ├── modules │ │ │ ├── _common.scss │ │ │ └── _grid.scss │ │ ├── _mixins.scss │ │ ├── app.scss │ │ ├── mixins │ │ │ └── _common.scss │ │ └── vendor │ │ │ └── _off-canvas.scss │ └── js │ │ ├── app.js │ │ ├── controllers │ │ ├── DetailController.js │ │ └── MainController.js │ │ ├── routes.js │ │ ├── directives │ │ └── directives.js │ │ ├── services │ │ ├── CommonService.js │ │ └── MovieService.js │ │ └── vendor │ │ └── off-canvas.js ├── README.md ├── ngviews │ ├── home │ │ ├── default.html │ │ └── detail.html │ └── common │ │ └── layout.html ├── package.json ├── index.html ├── gulpfile.js └── server.js ├── static └── js │ ├── angular-1.3.15 │ ├── version.txt │ ├── version.json │ ├── angular-csp.css │ ├── angular-cookies.min.js │ ├── angular-loader.min.js │ ├── angular-messages.min.js │ └── angular-cookies.min.js.map │ ├── angular-growl │ └── angular-growl.min.css │ └── prettify │ └── prettify.css ├── angularjs-tutorial ├── app.js ├── README.md ├── main.ctrl.js └── index.html ├── console_simple ├── scripts │ └── views │ │ ├── fuhe │ │ ├── v1.html │ │ ├── v2.html │ │ ├── v3.html │ │ └── main.html │ │ ├── login.html │ │ ├── account.html │ │ ├── register.html │ │ ├── scopewatch.html │ │ └── main.html └── index.html ├── angularjs_ngtemplate ├── views │ ├── mycontent3.html │ └── template.html └── data │ └── citys.json ├── angular_audio_player ├── bin │ └── server.sh ├── views │ ├── playerView.html │ └── nprListItem.html ├── README.md └── index.html ├── todos ├── .DS_Store ├── package.json ├── README.md └── public │ ├── app.js │ └── index.html ├── angularjs_app_site ├── README.md ├── package.json ├── client.js └── app │ ├── views │ ├── home.html │ ├── profile.html │ ├── signin.html │ └── signup.html │ └── js │ ├── lib │ └── ngStorage.js │ ├── app.js │ ├── services.js │ └── controllers.js ├── angularjs_login ├── p │ ├── img │ │ └── bg.jpg │ └── bootstrap-3.3.5 │ │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ └── npm.js ├── login │ ├── info.html │ └── login.html ├── toto_change.txt └── index.html ├── angular_sliderjs ├── images │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── 6.jpg │ ├── 7.jpg │ └── 8.jpg └── slider.tpl.html ├── angularjs_route2 ├── views │ ├── book.html │ └── chapter.html ├── scripts │ └── app.js └── angularjs_route.html ├── app_i18n ├── content │ ├── ico │ │ ├── favicon.ico │ │ ├── apple-touch-icon-114-precomposed.png │ │ ├── apple-touch-icon-144-precomposed.png │ │ ├── apple-touch-icon-57-precomposed.png │ │ └── apple-touch-icon-72-precomposed.png │ └── img │ │ ├── less-logo-large.png │ │ ├── grid-baseline-20px.png │ │ ├── glyphicons-halflings.png │ │ ├── bootstrap-mdo-sfmoma-01.jpg │ │ ├── bootstrap-mdo-sfmoma-02.jpg │ │ ├── bootstrap-mdo-sfmoma-03.jpg │ │ ├── bs-docs-twitter-github.png │ │ ├── bs-docs-masthead-pattern.png │ │ ├── responsive-illustrations.png │ │ ├── bs-docs-bootstrap-features.png │ │ ├── glyphicons-halflings-white.png │ │ └── bs-docs-responsive-illustrations.png ├── scripts │ ├── HomeController.js │ ├── EditPersonController.js │ ├── NewPersonController.js │ ├── app.js │ └── AppController.js ├── Partials │ ├── home.html │ └── form.html ├── index.html └── i18n │ ├── resources-locale_es.json │ ├── resources-locale_default.json │ ├── resources-locale_zh-CN.json │ └── resources-locale_es-es.json ├── angularjs_books └── AngularJS 进阶实践.pptx ├── minovate_page ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── views │ └── tmpl │ │ └── app.html └── index.html ├── angularjs_videoplayer └── assets │ ├── song.mp3 │ └── movie.webm ├── angularjs_route ├── views │ └── route │ │ ├── detail.html │ │ └── list.html ├── scripts │ ├── controllers.js │ └── app.js └── angularjs_route.html ├── angularjs_taxer ├── images │ └── tax_calculator.png ├── package.json └── README.md ├── angularjs_directive ├── views │ ├── mymenu_tpl.html │ ├── mymenu_tpl2.html │ ├── img_template.html │ ├── header.html │ └── footer.html └── angularjs_scope.html ├── angularjs_directive_listview └── views │ ├── logo_tpl.html │ ├── listitem_tpl.html │ ├── header_tpl.html │ └── footer_tpl.html ├── angularjs_uirouter ├── partial-home-list.html ├── partial-home.html ├── table-data.html └── partial-about.html ├── .gitignore ├── angularjs_treeData_demo ├── bootstrap-dist │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ └── npm.js └── treeData.css ├── angularjs_route_http ├── views │ ├── common │ │ └── alert.html │ └── route │ │ ├── movie_detail.html │ │ └── movie_list.html ├── scripts │ ├── controllers.js │ └── app.js ├── angularjs_route_http.html └── data │ └── movies.json ├── angularjs_ngRepeat └── js │ └── app.js ├── angularjs_uirouter_steps_demo ├── form-payment.html ├── form-profile.html ├── form-interests.html └── form.html ├── angularjs_maillist └── view │ ├── list.html │ └── detail.html ├── angularjs_controller ├── js │ └── app.js ├── angularjs_controller_timer2.html ├── angularjs_controller_timer.html ├── angularjs_controller_timer3.html ├── angularjs_controller2.html └── angularjs_controller_multiple.html ├── package.json ├── angularjs_nginclude ├── views │ └── header.html ├── angularjs_nginclude.html └── angularjs_nginclude2.html ├── angularjs_crud ├── assets │ ├── data │ │ └── users.json │ ├── tpl │ │ ├── lists.html │ │ ├── add-new.html │ │ └── edit.html │ └── js │ │ └── app.js └── index.html ├── angular_audio_demo └── views │ └── nprListItem.html ├── common └── header.html ├── angularjs_ngModelController └── asyncValidators │ └── app.js ├── angularjs_http_get_json_data └── data │ ├── posts.json │ └── tools.json ├── angularjs_timepicker └── views │ └── mydatepicker.html ├── angularjs_ngSanitize └── script.js ├── npm-debug.log ├── README.md ├── angularjs_proxy └── angularjs_proxy.html ├── angularjs-ng-select └── index.html ├── angularjs_filter └── angularjs_customize_filter.html ├── angularjs_module └── angularjs_module.html ├── angularjs_location └── index.html ├── angularjs_ioc └── angularjs_ioc.html ├── angularjs_service ├── angularjs_service.html └── angularjs_service2.html ├── angularjs_ngclass └── angularjs_ngclass.html ├── angularjs_service_controller_directive └── data │ └── photos.json ├── hello_angularjs └── angularjs_rootScope.html ├── angularjs_factory_service └── angularjs_factory_service.html ├── angularjs_autocomplete └── data │ └── citys.json ├── angularjs_directive_controller ├── angularjs_directive_contoller1_2.html ├── angularjs_directive_contoller.html └── angularjs_directive_contoller1.html ├── angularjs_event └── angularjs_click.html ├── angularjs_factory └── angularjs_factory.html ├── angularjs_form_validation └── angularjs_form_validation6.html ├── angularjs_ngsubmit └── angularjs_ngsubmit.html ├── angularjs_cookie └── angularjs_cookie.html └── angularjs_extention └── angularjs_extention.html /angularjs-douban-movie/assets/css/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/js/angular-1.3.15/version.txt: -------------------------------------------------------------------------------- 1 | 1.3.15 -------------------------------------------------------------------------------- /angularjs-tutorial/app.js: -------------------------------------------------------------------------------- 1 | angular.module('app', []); -------------------------------------------------------------------------------- /console_simple/scripts/views/fuhe/v1.html: -------------------------------------------------------------------------------- 1 |
3 |
3 | | 发件人 | 主题 | 发送时间 |
|---|---|---|
| {{message.sender}} | {{message.subject}} | {{message.date}} | 5 |
| Name | 7 |Cost | 8 |
| {{ scotch.name }} | 14 |${{ scotch.price }} | 15 |
{{movie.desc}}
8 |
9 |
10 |
在本示例中你将看到下面内容
7 |This page demonstrates multiple and named views.
6 |{{myDetails.data.email}}
11 |{{myDetails.data.password}}
12 |an html\n' + 4 | 'click here\n' + 5 | 'snippet
'; 6 | $scope.trustHtml = $sce.trustAsHtml($scope.myHtml) 7 | }); 8 | 9 | app.controller('ctrlLinky',function($scope,$sce,$filter){ 10 | $scope.myHtml = ''+ 11 | '下面这些都应该是链接:\n'+ 12 | 'http://angularjs.org/,\n'+ 13 | 'mailto:us@somewhere.org,\n'+ 14 | 'another@somewhere.org,\n'+ 15 | 'and one more: ftp://127.0.0.1/.\n'+ 16 | '
'; 17 | console.log($filter('linky')($scope.myHtml,'_blank')) 18 | }); 19 | /* 20 | 1.ngSanitize添加了$sanitize服务,但这个服务是不出现在代码里的,它的出现的作用就是使得html里面可以使用ng-bind-html这个指令,能够把ng-bind-html绑定的内容进行安全编译 21 | 安全编译的方法就是移除html上的所有属性,是所有属性,包括事件绑定,样式,等一切.仅仅保留html标签和内容. 22 | 2.如果是要改变其默认的编译方式,应该使用$sce服务.$sce服务是不依赖任何东西的. 23 | 3.如果使用了$sce来编译了html字符串,那么即使不添加ngSanitize也可以使用ng-bind-html. 24 | 4.如果既不添加ngSanitize,又不使用$sce来编译html字符串,直接在html里使用ng-bind-html,是不行的. 25 | */ 26 | -------------------------------------------------------------------------------- /console_simple/scripts/views/main.html: -------------------------------------------------------------------------------- 1 |
28 | {{ formData }}
29 |
30 |
31 | 输出:{{clock}}
33 |当前值:{{myOption}}
19 |当前路径,模版,参数等:
27 |$location.path() = {{$location.path()}}
28 | $route.current.templateUrl = {{$route.current.templateUrl}}
29 | $route.current.params = {{$route.current.params}}
30 | $route.current.scope.name = {{$route.current.scope.name}}
31 | $routeParams = {{$routeParams}}
32 | {{cast.name}}
32 |输出:{{clock}}
33 |输出:{{user.name}} say, welcome to visit {{user.website}}
34 |完整url路径: {{absurl}}
13 |url路径(当前url#后面的内容,包括参数和哈希值): {{url}} 14 | 15 |
16 |相对路径(也就是当前url#后面的内容,不包括参数): {{path}} 17 | 18 |
19 |协议(比如http,https): {{protocol}}
20 |主机名: {{host}}
21 |端口号: {{port}}
22 |哈希值: {{hash}} 23 | 24 |
25 |search值序列化json: 26 | {{search}} 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 | /some1?foo=bar | 35 | /some2?foo=bar#myhash | 36 | 外部链接 37 |输出:{{clock.now}}
33 |57 | TODO项目,后台使用node,express,mongoose提供restful[GET,POST,PUT,DELETE]风格的API,前台使用angular,bootstrap 58 |
59 |{{phone.snippet}}
36 |输出:{{user.name}} say, welcome to visit {{user.website}}
33 |输出:{{clock.now}}
37 |37 | 38 |
39 |