Showing posts with label AngularJS. Show all posts
Showing posts with label AngularJS. Show all posts

Thursday, June 22, 2017

Using AngularJS on the localhost

AngularJS directives are extensions of HTML markups. They are one of several components of AngularJS. Directives can be attributes, element names, CSS class etc.

AngularJS script reference is important and the script can be found here:

https://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"
The above script reference needs to be added to your hTML page.

You can find the whole list of directives here:
https://docs.angularjs.org/api

Here is the usage of some directives placed in a html page that can be displayed on your localhost (in this case the IIS in Windows 10). Place this code with a suitable name in the inetpub / wwwroot directory.

======================


  Some directives in AngularJS

ng-app
Sorry, blogger still does not support the "pre" tag!
==============
When viewed on the browser (in this case Microsoft Edge), the HTML page renders as shown.


Do the following on this interactive page:
  • Type anything it gets copied next to Hello
  • Enter the increment region with your mouse, the count (presently 1) gets incremented
  • Click the link and you get to the page
Directives used in the page above and their description:
ng-app: initializes an AngularJS application
ng-model: binds the value of HTML controls (input, select, textarea) to application data
ng-init: initializes application data
ng-mouseenter: an AngularJS mouse event as a cursor moves over an dom element
ng-href: supported by the "a" tag and should be used when AngularJS code as in the example


Sunday, November 15, 2015

Create amazing mobile HTML apps using Meteor

It appears Meteor can provide a radically simpler way to build real time mobile and web app using only JavaScript from one code base. I have not used Meteor and the content for the post came from here.

Here are some Highlights:

Universal JavaScript
Same code from client to cloud; from packages to database apis; from browsers to mobile devices via Meteor's unified isobuild system

Mobile and Web apps
As Installable iOS and as Android app
As a web app that loads on demand

Reactive Rendering
While being thin,  gives a thick client feel and look using Meteor's Blaze Framework with AngularJS and ReactJS

Meteor's Cloud Platform Galaxy
Deployment, scaling and monitoring for connected clients
Provides actionable metrics to stateful connected client apps
One command to update all connected browsers and apps (Hot Deploy)
Coordinated version updates

How is it different from AngularJS and ReactJS?
Meteor has Blaze library and is full stack, while AnjularJS and ReactJS are JavaScript UI frameworks. These frame works can be used in conjunciton with Meteor.

More details and Q&A here. I will give it a try one of these days.


Monday, July 20, 2015

Move on to Visual Studio 2015 RTM / Community

You have been using Visual Studio 2013 or non-rtm versions of Visual Studio 2015. Now Visual Studio 2015 RTM is available and the Visual Studio 2015 Community edition is free. Visual Studio Community is free for individual developers, open source projects, academic research, education, and small professional teams.

All Visual Studio 2015 items shown below can be downloaded from this link.

VS2015RTM01.png

Download button for the Visual Studio 2015 Community is here.











  

VS2015RTM02.png

It has everything you need for productive programming:
  • Flexibility- PC, tablet, smartphone OK
  • Designers, editors, debuggers, profilers all in one place
  • Extensive extensions makes you reach out
  • Multiple language support, C#, VB, F#, C++, Python, HTML, JavaScript and more
  • Support Windows Desktop Programs, Universal Windows Platform, iOS, and Android
  • Develop for web with ASP.NET, Node.js, Python etc with several frameworks(AngularJS, jQuery, Django, etc)


Monday, April 27, 2015

WinJS 4.0 is in preview. Get it now!

WinJS is a cross-platform JavaScript library for building HTML5/CSS/JavaScript applications across devices. When it was announced first in 2014 it was Open Sourced. The version in preview is 4.0.

The feature set got beefed up with the following: (http://visualstudiomagazine.com/articles/2015/04/01/winjs-4-preview.aspx):
  • Universal experiences: UI controls will scale or translate among various devices without having to go through significant rewrites.
  • Addition of controls: ContentDialog, SplitView, AutoSuggestBox and ToolBar controls are now available; Hub and Pivot controls and other controls are updated.
  • AngularJS Support: An AngularJS-WinJS wrapper allows WinJS-originated code to be used in AngularJS projects.
  • ListView Improvements: "ListView is a signature control for WinJS," according to the Windows blog. As such, its capabilities have been streamlined to work almost identically from mouse- to touch-enable device: multi-selection, lists in alternating stripes, progressive loading of elements in a list, to name a few.
You can (WinJS4.0 and full feature list) download from here ().

There is also an online playground here:

 Get all my JavaScript related articles here:
http://hodentekmobile.blogspot.com/search?q=Javascript
DMCA.com Protection Status