background preloader


Facebook Twitter

Angular2-tree-diagram. About This is Angular 2+ Hierarchical UI module. Preview Demo On gh-pages Features Drag and dropZoom and panConfigurable node width/heightAdd/remove nodesTree-like UIPure CSS relation linesNo dependencies Installation npm i angular2-tree-diagram Usage Import module in your projectUse tree-diagram directivePass array of nodes and configSee example.json for more details Example.

Angular Schematics

Nebular - full-featured framework based on Angular. Recursive Tree-View Using Angular 2 And TypeScript Until nth Level Depth. In this article, I will show you how to create a simple Nth level recursive tree-view using Angular 2 and TypeScript. Here, I am using TypeScript, which is not mandatory. You can use your own supported scripting language, which can be either JavaScript or any other. I will not go into much detail of each and every piece of code, as I am assuming you already know Angular 2 coding style. I will start by creating a wrapper component that Bootstraps the Application and includes the actual Tree-View component on the page.

This sample Tree-View renders a recursive Tree-View structure with the parent nodes, child nodes, grandchild nodes, grand grand child nodes and so on in a parent child relationship fashion. Step 1 tree-view.component.ts In the code given above, getMenuDetails is a Service method, once the Service method executes successfully. Step 2 This is the Service component, where we are dealing with HTTP verbs. Project-role.service.ts Step 3 Step 4 tree-view.html Step 5. GitHub - csotomon/Angular2-AdminLTE: An Angular 4 version of the AdminLTE theme. [NativeScript]使用Angular CLI來操作NativeScript專案 | 全端開發人員天梯 - 點部落. 今天來談談如何在NativeScript專案中,使用Angular CLI建立component、directive和module等程式,節省開發時間。 最近在嘗試用NativeScript開發手機app,能用原來已經熟悉的Angular2來開發mobile app,並且能夠直接呼叫原生的手機UI出來操作是一件很爽塊的事情,不過很可惜的是使用NativeScript CLI建立出來的專案無法透過Angular CLI來產生元件,而偏偏又已經習慣了Angular CLI產生元件的方便性,且符合Angular2一至的style,每次要建立component或module等等就會覺得有Angular CLI真好...

雖然有一個nativescript-ngx-magic能幫助我們整合Angular CLI與NativeScript專案,但老實說這個套件讓程式變的非常醜,而且要改動的幅度不小,還有些bug...最後決定放棄使用,根據官方issue說未來Angular CLI和NativeScript會有很好的整合,可惜目前還沒有下文...但工作還是要做,專案也必須要go下去(總不能跟老闆說因為沒有好工具所以不開發app了),在觀察過NativeScript CLI產生的專案及nativescript-ngx-magic套件的作法後,還是成功的嘗試把Angular CLI和NativeScript做了整合,今天就來介紹一下整合的步驟。 前置準備 首先當然需要安裝Angular CLI和NativeScript CLI Angular CLI— NativeScript CLI— 速成法:使用已經建好的seed project 如果懶得瞭解具體整合步驟,可以直接用我整合建立好的seed project—native-script-with-ng-cli,以下是簡單的步驟 1. Git clone https: 2. Cd native-script-with-ng-cli npm install 3. Npm run npm run start.ios 整合步驟 1. 2. 3. 4. 5.


GitHub - alxhub/io17. Mobile-toolkit/service-worker/worker at master · angular/mobile-toolkit. PWAs with Angular: Being Reliable. If you’ve been in the world of web development during the past two years you’ve probably heard the term Progressive Web Apps (PWAs for short). PWAs are essentially web applications that provide a near-native experience on mobile devices. According to Google they must be: Reliable — Load instantly and never show the downasaur, even in uncertain network conditions.Fast — Respond quickly to user interactions with silky smooth animations and no janky scrolling.Engaging — Feel like a natural app on the device, with an immersive user experience. So how can we make sure our Angular applications follow these tenets and provide the best user experiences? Well let’s take a simple app I’ve already written and turn it into a PWA. git clone --branch v0.0 cd ng-popular-movies-pwa npm install This app depends on The MovieDB’s APIs.

Well it runs, and if you click on a movie we can get more details about it. Wait a sec! . . The Will Will Web | 如何在 Angular CLI 建立的專案加入 Angular Universal 伺服器渲染功能. 自 Angular 4.0 開始 Angular Universal 就已經正式併入 Angular 核心功能,本篇文章將示範如何將一個由 Angular CLI 建立的專案,加入 Angular Universal 伺服器渲染能力,只要透過 Node.js 知名的 Express 網站框架,即可快速實現 Angular 的伺服器渲染能力 ( SSR ) ( Server-side Rendering )。 1. 建立全新 Angular 4 專案 ng new demo1 2. 由於我們的 Express 程式碼會以 TypeScript 撰寫,因此你必須額外安裝 ts-node 套件才能讓 Express + TypeScript 正確執行。 Npm install --save-dev ts-node 3. 注意:自 npm 5.0 之後,npm install 不需要特別加上 --save 參數,只要專案下有 package.json 檔案,在 npm install 之後預設就會自動儲存套件到 package.json 定義檔中。 Npm install @angular/platform-server 4.

修正預設 AppModule 中 BrowserModule 的匯入方式 5. 6. 由於 renderModuleFactory 函式需要透過 AOT (Ahead of Time) 編譯過的檔案,其傳入的第一個參數 AppServerModuleNgFactory 必須要先執行 ng server --prod 與 ngc 命令才能產生相關檔案,在這些檔案出現之前,你可能會在 Visual Studio Code 看見找不到參考檔案的錯誤訊息。 7. 我們要跳過 Express 程式 ( src/server.ts ),因為這段 Code 是 Node.js 的程式,會影響 Angular 本身的 TypeScript 編譯,因此需要排除在外。 8. 請務必加入 "angularCompilerOptions" 設定到 tsconfig.json 定義檔中。 9. 加入 "start" 與 "prestart" 到 "scripts" 區段中,因為在正式執行 src/server.ts 之前,必須先執行 ng build --prod 與 ngc 命令。 10. GitHub - sherweb/ng2-materialize: Angular 2+ wrap around Materialize library. GitHub - michaelbromley/ngx-pagination: Pagination for Angular.

Angular DataTables. Plunker. Md-data-table. Live demo Angular material table. Complete implementation of google material design based on angular material components. This component is optimized for speed, and it's faster then other similar implementations, since it generates a native html table, and browsers are optimized for tables. Angular2 and Angular2 Material version of this plugin is under development. Usage statistics Install bower install md-data-table or npm install md-data-table or download the source.Make sure the mdDataTable (notice the camelCase typing) lib is loaded.

Load it from CDN (with example of version 1.8.0) UI&UX driven by google data table Table of contents Overview ! Ng2-md-datatable. Angular 2 with Material 2 is awesome, but it's still lacking a DataTable component (as of November 2016). As I urgently needed one for a project, I decided to make my own DataTable component and share it on GitHub. This may be useful for you (or not). Features Pagination ComponentColumn sorting (ascending/descending)Row selection (using checkboxes)You can use it with @ngrx/store (that's how I use it) Working with Angular 4.xMaterial 2 Beta 6 Installation To use ng2-md-datatable in your project install it via npm: npm install --save ng2-md-datatable Then include it in your application's main module: import { MdDataTableModule } from 'ng2-md-datatable'; @NgModule({ imports: [ MdDataTableModule, Usage Your datatable would look like this in a Angular 2 template: Here's the pagination component: As you might have noticed, these two components are not initially linked, it is up to you to bind them to your datasource and react to events they fire.

Events You should subscribe to these event emitters: Theming. Angular DataTables. GitHub - zefoy/ngx-dropzone-wrapper: Angular 2 wrapper library for dropzone. Leaf - Bootstrap 4 Admin Template. GitHub - mixalistzikas/ngbox: ngBox is the first angular 2 module used to overlay images, videos and iframes on the current page. Imgur API. API Status Status for the API can be found at! Getting Started Imgur's API exposes the entire Imgur infrastructure via a standardized programmatic interface. Using Imgur's API, you can do just about anything you can do on, while using your programming language of choice. The Imgur API is a RESTful API based on HTTP requests and JSON responses. This version of the API, version 3, uses OAuth 2.0.

The easiest way to start using the Imgur API is by clicking the Run in Postman button above. Example code These examples serve as a starting point to help familiarize you with the basics of the Imgur API. Need help? The Imgur engineers are always around answering questions. Register an Application (IMPORTANT) Each client must register their application and receive the client_id and client_secret. Authorization: Client-ID <YOUR_CLIENT_ID> Registration Quickstart Download Postman and click the Run in Postman button at the top of this page. Commercial Usage Free Usage Endpoints Usage:

Angular - Can md-toolbar be fixed top when inside md-sidenav-layout? Icons - Material Design. Akveo/ng2-admin: Angular 2 admin dashboard framework. Javascript - Apply css rules on nested component in Angular2. Angular - Use component in itself recursively to create a tree. Recursive Tree-View Using Angular 2 And TypeScript Until nth Level Depth. Model Driven Forms • Forms • Angular 4. We represent the form as a model composed of instances of FormGroups and FormControls. Lets create the model for our form on our component, like so: The myform property is an instance of a FormGroup class and this represents our form itself.

Each form control in the template is represented by an instance of FormControl. This encapsulates the state of the control, such as if it’s valid or invalid and even it’s current value. These instances of FormControls nest inside our top level myform: FormGroup, but what’s interesting is that we can nest FormGroups inside other FormGroups. In our model we’ve grouped the firstName and lastName controls under a FormGroup called name which itself is nested under our top level myform: FormGroup.

Like the FormControl instance, FormGroup instances encapsulates the state of all of it’s inner controls, for example an instance of a FormGroup is valid only if all of it’s inner controls are also valid. Custom validators in template driven Angular forms. Angular version 2+ has two different kind of Forms API, the reactive and template driven approach. In this article we will focus on the template driven approach and learn how to use it as well as how to build a custom validator with it. Contents are based on Angular version 2+.

Table of contents Todd Motto recently published a similar article on “Reactive FormGroup validation with AbstractControl in Angular 2”, which you might definitely want to check out for the reactive kind of approach to this. A simple Angular Form Ok, before starting, let’s take a look at our simple Angular, template driven form. <form #form="ngForm" (ngSubmit)="onSubmit(form.value)"><div> Firstname: <input type="text" ngModel name="firstname" /></div><div><button>Submit</button><button (click)="onReset($event, form)">reset</button></div></form> So far so good, binding works. Adding built-in validators We can make use of the built-in HTML5 validators in Angular just as we were able already in AngularJS (Angular 1.x).

Blur Admin. GitHub - brillout/awesome-angular-components: Catalog of Angular 2+ Components & Libraries.


Angular/material2: Material Design components for Angular 2. Mseemann/angular2-mdl: Angular 2, 4 components, directives and styles based on material design lite. [ASP.NET WebApi]使用JWT進行web api驗證 | 全端開發人員天梯 - 點部落. 在開發web api的時候,由於連線通常都是stateless的,因此驗證跟授權是一個比較艱鉅的挑戰,也因此出現了不少規範來解決這個問題如OAuth等等,而JWT則是一個相對簡單但又安全方式,今天就來介紹一下如何使用JWT來處理Asp.Net WebApi的驗證。 什麼是JWT JWT是Json Web Token的縮寫,詳細規範在RFC7519中,目的是用來傳遞JSON物件並且透過雜湊簽章來確保資料沒有被變更過。 因此我們可以把它當作驗證的token來用,也可以用來在兩個client之間傳遞資料。 JWT包含了三個部分,header、payload和signature,並使用"點"( . )將三個部分連結起來成為一個字串進行傳遞,因此一個完整的JWT字串看起來會像這樣 xxxxx.yyyyy.zzzzz Header JWT的header部分包含了兩個主要資訊:使用的加密演算法和token的類型(基本上就是JWT),例如以下JSON物件代表了使用HS256演算法來產生JWT token 這個物件之後會以base64Url的方式轉換成字串 Payload payload包含了聲明的資料,在這裡可以存放一些基本的驗證資訊,在RFC7519中也包含了基本內建的幾個資訊如iss(issuer)、sub(subject)等等(非必要),當然我們也可以加入自己要的資訊,一個payload看起來會像這樣 上面的sub就是RFC7519中定義的基本資訊,age則是我們自己加上去的。

Signature 最後的signature部分則是用來確保資料完整性的一個雜湊簽章,我們可以選用任何雜湊演算法來進行處理,假設我們要使用HMAC SHA256演算法的話,可能會看到類似以下的程式 HMACSHA256( base64UrlEncode(header) + ". " + base64UrlEncode(payload), secret) 最後我們再把這三個部分組合起來,就可以看到類似以下的token啦! 圖片來源: 使用JWT token進行驗證 接下來我們來看看如何使用JWT token來進行驗證,驗證的流程大致如下圖 1. client端發送登入的請求,這時可能會附上帳號密碼等驗證資訊 3. 6. 在Asp.Net WebApi加入JWT驗證 1. 2. 3. 4. GitHub - coryrylan/ng-pokedex: Pokedex progressive web app built with Angular 2. GitHub - mseemann/angular2-mdl: Angular 2, 4 components, directives and styles based on material design lite.

[Angular] Angular 4 - Universal with ASP.NET Core | CK's Notepad. AngularClass/awesome-angular: A curated list of awesome Angular 2 and Angular... Ios - xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH - Since updating xCode. Ionic Services Docs | Push Notifications. Ionic Services Docs | Setup.


GitHub - CocoaPods/cocoapods-deintegrate: A CocoaPods plugin to remove and de-integrate CocoaPods from your project. Visual Studio Code and Azure App Service - a perfect fit | 部落格. If you're like me, you were excited to see the announcement of Visual Studio Code last week and immediately started to think about how cool it would be if you could hook it up to your projects deployed on Azure App Service. So, between sessions at //build2015 and on the way back home from San Francisco (with the help of my awesome colleague David Ebbo), I was able to put together a great starting point. A Node.js app running on Azure App Service that I can develop in Visual Studio Code and publish to the Azure Cloud by doing a Git Push. The artifacts created by the steps I will describe below are: An Azure App Service Web App implemented in node.js A GitHub repo that is synchronized with the Web App (every commit to the master branch publishes a new version of the Web App using a GitHub hook) A local git repo setup to push to the GitHub repo as a remote A Visual Studio Code workspace configured to use the local git repo The end result?

System Requirements Putting it all together 3. 4. Publishing website from Visual Studio Code to Azure with Git - @eliostruyf. For a hobby project which I was creating with Node.js and Visual Studio Code, I was amazed about how powerful the Visual Studio Code has gotten in such a short time period. Most of us know how easy it is when you publish one of your web projects from Visual Studio to Azure. It is just a matter of clicks and your website gets pushed to the cloud.

In Visual Studio Code it is not that easy as its big brother, but that does not mean that it is hard to achieve. You have to do a couple of things yourself, but once you have done these things it is as easy as in Visual Studio itself. The way to achieve it is via the continuous deployment functionality of a Web App.

Deployment options As you can see in the screenshot above, you have a couple of options. Azure Web App - Local Git repository configuration First thing you have to do is create a new Web App for your web project on Azure. Continuous deployment Click on Continuous deployment and you will get the option to configure it: Local Git Repository. Create an Angular 2 and .NET Core app that can be edited using Visual Studio 2017 - In the recent series on using Angular 2 and .NET Core to check the weather we used the ASP.NET Core Template Pack to save time manually installing/configuring Webpack, Node, Angular etc.

That works well if you want to create your new projects using the new project wizard in Visual Studio 2015. But what if you’re using using Visual Studio 2017? You have another option. Install the templates As you’ve got Visual Studio 2017 installed you already have a suitably recent version of the .NET Core SDK installed to make this work. You’ll need to check you have NodeJS version 6 or later. Open up a command prompt and type the following. Wait for that to install and you’ll find you have new options for the dotnet new command. Create your app To create your new Angular2 and .NET Core app, change directory to an empty folder, then type… Once it’s finished, take a look at the folder and you’ll see something like this. Double click the *.csproj file and the application will open up in Visual Studio 2017.

Angular 4.0.0 Now Available. Angular version 4.0.0 - invisible-makeover - is now available. This is a major release following our announced adoption of Semantic Versioning, and is backwards compatible with 2.x.x for most applications. We are very excited to share this release with the community, as it includes some major improvements and functionality that we have been working on for the past 3 months. We’ve worked hard to make sure that it’s easy for developers to update to this release. Smaller & Faster In this release we deliver on our promise to make Angular applications smaller and faster. View Engine We’ve made changes under to hood to what AOT generated code looks like. During our release candidate period, we heard from many developers that migrating to 4 reduced their production bundles by hundreds of kilobytes. Read the Design Doc to learn more about what we did with the View Engine. Animation Package We have pulled animations out of @angular/core and into their own package.

New Features Improved *ngIf and *ngFor. Phonegap-plugin-push/ at master · phonegap/phonegap-plugin-push. Can't add android platform since Android SDK Tools update 25.3.0 · Issue #10604 · driftyco/ionic. Ionic 2 FCM Push Notification. GitHub - tiagomtotti/firebaseNet: Client library for Firebase Cloud Messaging (FCM) written in C# / .NET.

Azure-content-zhtw/ at master · Azure/azure-content-zhtw. Send push to Android by C# using FCM (Firebase Cloud Messaging) Android - FCM (Firebase Cloud Messaging) Push Notification with Asp.Net. Quickstart-js/messaging at master · firebase/quickstart-js. Send Firebase push notification from JavaScript/jQuery. Authentication in ASP.​NET Core for your Web API and Angular2. Easy Angular Authentication with JSON Web Tokens. Angular: Easy Angular Authentication with JSON Web Tokens. Angular 2 JWT Authentication Example & Tutorial | Jason Watmore's Blog. Unsaved project - Plunker. Routing & Navigation - ts - GUIDE. Reactive Programming 簡介與教學(以 RxJS 為例) | TechBridge 技術共筆部落格. Angular 2 Forms 介紹:Model-Driven Forms | Jeff's WebTech Note.

Angular 2 Forms 介紹 | Jeff's WebTech Note. GitHub - BTMorton/angular2-grid: A drag/drop/resize grid-based plugin directive for angular2. Authentication in Angular 2 – Gábor Soós – Medium.


Ag-Grid Data Grid Example. Angular2 Bootstrap. 快快樂樂學會 Angular 2 網站開發框架. Angular2-highcharts. Angular 2 Tutorial for Beginners: Learn Angular 2 from Scratch. Building Blocks of Angular 2 with TypeScript. Angularjs 2 with TypeScript Tutorial for Beginners. Visual Studio 2015 QuickStart - ts.