Thursday 29 October 2015

ADFS Login Process

Refer to Doc, how to copy ADFS from Neil.
No1 is required to make javascript to point the correct value.
Without No2, there was 'dangerous ...' error.


Without No3, there was error.

Web.config should be different from local and live.



When  login button is clicked, it goes to correct login screen.


App Login Process


Tuesday 20 October 2015

Angular JS compile in iOS/Android

Angular JS compile in iOS

1. go to your app-folder
2. gulp build
3. phonegap build ios
4. go to Xcode
5. connect / run to your phone


No2 creates www folder (Phonegap folder) from src folder (Angular JS code)
No3 creates app-folder\platforms\ios\XXX.xcodeproj

Angular JS compile in Android

1. go to your app-folder

Never do below!! (Some of the files in www are essentially necessary eg, icon.png. And they do not recover by 'gulp build')

2. cd www
del *
cd ..

3. gulp build
4. phonegap build android 
(build was necessary to run emulator properly)

5. phonegap run android

Monday 12 October 2015

Start Angular JS (Angular JS Install)


Grand Prix drivers example
http://www.toptal.com/angular-js/a-step-by-step-guide-to-your-first-angularjs-app
C:\phonegap_apps\angular-seed

angular-seed install and run
https://github.com/angular/angular-seed



A simple example => not working, but read some.
http://www.sitepoint.com/getting-started-mobile-angular-ui/
Source code
https://github.com/sitepoint-editors/MobileAngularUIApp_Part_1
C:\phonegap_apps\MobileAngularUIApp_Part_1-master


Another nice example
http://coenraets.org/blog/2013/11/sample-mobile-application-with-angularjs/

Editing AngularJS in visual studio
http://blogs.msdn.com/b/visualstudio/archive/2015/02/05/using-angularjs-in-visual-studio-2013.aspx

Mobile Angular UI
https://github.com/mcasimir/mobile-angular-ui

Mobile Angular UI - Getting started (install)
http://mobileangularui.com/docs/getting-started/


<USEFUL LINKS>

Angular JS, Hello World (Very nice series)
http://viralpatel.net/blogs/angularjs-introduction-hello-world-tutorial/

scope / controller
http://viralpatel.net/blogs/angularjs-controller-tutorial/

ng-view


Angular JS 5 examples
http://tutorialzine.com/2013/08/learn-angularjs-5-examples/

scope.apply
http://jimhoskins.com/2012/12/17/angularjs-and-apply.html

factory
http://blog.manishchhabra.com/2013/09/angularjs-service-vs-factory-with-example/

scope value watch
http://www.bennadel.com/blog/2852-understanding-how-to-use-scope-watch-with-controller-as-in-angularjs.htm

scope function watch
http://www.bennadel.com/blog/2658-using-scope-watch-to-watch-functions-in-angularjs.htm


Phonegap with AngularUI

Your first Phonegap App with Mobile Angular Ui

http://mobileangularui.com/blog/using-the-generator/

https://github.com/mcasimir/generator-mobileangularui

The Git Example had some errors.
https://github.com/mcasimir/generator-mobileangularui/issues/21


I followed below but stopped because of too much time waste.

Install nvm
http://stackoverflow.com/questions/25654234/node-version-manager

Install nvmw
https://github.com/hakobera/nvmw

Restart cmd to recognize nvmw path.

Although it looks like an error, it seems good.


Tuesday 6 October 2015