代码改变世界

AngularJS Best Practices: ng-include vs directive

2016-01-04 00:03 by zhangpengc, 220 阅读, 0 推荐, 收藏, 编辑
摘要:For building an HTML template with reusable widgets like header, sidebar, footer, etc. Basically the main content is the central DIV which will have i... 阅读全文

AngularJS Best Practices: resource

2015-12-17 06:15 by zhangpengc, 183 阅读, 0 推荐, 收藏, 编辑
摘要:A factory which creates a resource object that lets you interact withRESTfulserver-side data sources.The returned resource object has action methods w... 阅读全文

Force StyleCop to Ignore a File

2015-12-02 23:49 by zhangpengc, 209 阅读, 0 推荐, 收藏, 编辑
摘要:You can quickly force StyleCop to ignore files in a project by manually modifying the project file, and inserting the following element under each fil... 阅读全文

AngularJS Best Practices: SEO

2015-12-02 05:59 by zhangpengc, 267 阅读, 0 推荐, 收藏, 编辑
摘要:AngularJS SEO 阅读全文

AngularJS Best Practices: ui-router

2015-12-02 05:22 by zhangpengc, 226 阅读, 0 推荐, 收藏, 编辑
摘要:ui-router is a 3rd-party module and is very powerful. It supports everything the normal ngRoute can do as well as many extra functions.Here are some c... 阅读全文

AngularJS Best Practices: ASP.NET MVC Directory Structure

2015-12-02 05:03 by zhangpengc, 191 阅读, 0 推荐, 收藏, 编辑
摘要:An ideal AngularJS app structure should be modularized into very specific functions and this is specific to AngularJS with ASP.NET MVC. 阅读全文

AngularJS Best Practices: pretty urls

2015-12-02 04:57 by zhangpengc, 187 阅读, 0 推荐, 收藏, 编辑
摘要:Pretty URLs in AngularJS: Removing the # 阅读全文

AngularJS Best Practices: ngRoute

2015-12-01 06:18 by zhangpengc, 333 阅读, 0 推荐, 收藏, 编辑
摘要:AngularJS routing helps you in dividing your application in logical views and bind different views to controllers. The magic of routing is taken care by a service provider that AngularJS provides out of the box called $routeProvider. 阅读全文

AngularJS Best Practices: Directory Structure

2015-12-01 00:47 by zhangpengc, 157 阅读, 0 推荐, 收藏, 编辑
摘要:An ideal AngularJS app structure should be modularized into very specific functions. 阅读全文

Saving changes is not permitted in SQL Server

2015-11-16 18:46 by zhangpengc, 224 阅读, 0 推荐, 收藏, 编辑
摘要:FromSave (Not Permitted) Dialog Box on MSDN:TheSave(Not Permitted) dialog box warns you that saving changes is not permitted because the changes you h... 阅读全文