Category

JAVASCRIPT

Vue Admin Template-Clear

Clear is the one which attracts users by its excellent user interface and this admin template came up with the most trending version2 of VueJS. Its design is impressive and bold which attracts the users to grab and uses it for their applications.
Clear is the most responsive admin template & built with Bootstrap3, HTML5, CSS3. Clear admin template has number of selective plug-in with reusable components which helps you to extend the basic HTML elements to encapsulate the reusable code.
Vue admin template allows the user to direct the structure of the application according to one’s own requirement and is the best suitable admin template for any type of web applications or any custom admin panels.
Bonus : It also comes with Laravel spark skin which is the most latest trending framework in the market.
Clear admin panel built with SASS so that user can choose new colour scheme and it also comes with multiple page layouts. Clear has both light & dark versions which user can choose any of it as they like.

More information about Vue admin template :
* Vue admin panel has a dynamic framework and is available in three versions : VueJS version, laravel spark skin version, Bootstrap version.
* Version 1.1 added with Vue.JS files including native vuejs components.
* Version 1.2 powered with Vue.js light version & added plug-ins like Vue-multiselect , Vue-Slider.
* Version 1.3 : Vue.js version is simplified and added documentation.
* Version 1.4 : Provided simplified Vue.js version with updated documentation.
* Version 1.6 : Released bonus product Laravel spark skin with clear color scheme.
* Version 1.7 : Updated with Horizontal menu & Mini side bar menu.
* Version 2.0 : Powered with Laravel mix for easy build system.
* Version 2.3 : Added with Vuex ( is a state manage pattern + Library for Vue.js applications).

Clear admin template can be useful for any kind of the web application : CRM, Admin panels , Dashboard etc . Clear is fully responsive which looks great on Desktops, Mobiles & Tablets.

https://themeforest.net/item/clear-bootstrap-vuejs-admin-template/19339739?s_rank=1?ref=jyostna

More Vuejs Articles

JQuery Training

For those people who want to enter into jQuery training, and maybe start on the path to a high- earning career within that market, discover more about the training program.

For those of you who do not know what jQuery is- firstly, the j signifies Java, the programming language for writing… jQuery is an open- source Java script library whose essential intention is to create highly interactive, responsive web sites. Undoubtedly one of its desirable attributes is that it will let users to fixate his energies wholly on his design, on the thing this individual is wanting the completed webpage to look like, by removing those qualities which are distinct to a selected internet browser; alternatively, jQuery acts behind the scenes to handle the drawback of internet browser eccentricities. Additionally, it is simple to change the content on the website; to add special effects along the lines of animation as well as image fading; to do the same function on more than one line of code. Third- party plug ins might likewise be implemented to perform special tasks. Every one of the up-to-date versions of today’s browsers are compatible with jQuery.

There are several methods to get jQuery training. The first is with a tutorial; they can be supplied free on video at a handful of places. Or rather, Certain parts are exposed to those people without membership, while others typically are not. Every section may last from about below 2 minutes to just under a thirty minutes. Subject areas which might be commonly covered in a training on jQuery may include downloading the software; retrieving page content; working with events; implementing attribute filters; and additionally creating, setting, removing, and swapping out website content.

An additional way to gain knowledge of jQuery, is naturally the old fashioned path, by using an institution of higher education. A few of their trainings may be completed on the web, which means you will not have to continue moving back and forth in between school and your home. At a school called Accelebrate, which has campuses in major United states and Canadian towns, for example, a large number of classes are instructed on location there.

Doing training on the internet could also mean downloading them to one’s smartphone or tablet. The reality is, you can get courses which are devoted especially to this module, like Introduction to jQuery Mobile Development.

Training books about jQuery have been printed; though needless to say simply reading them would not qualify for a diploma in the subject! And many establishments even feature annual events; sign up for all of these which are being scheduled in your city.

As with many challenging fields of study, students shall be anticipated to have a modicum of experience along with them to the beginning sessions. Fot that reason, attempt to learn about those specifications, and plan in advance if possible throughout your high school and undergrad years.

This article has been a general survey of what precisely jQuery training is centered on. To find information about which particular training classes are available to choose from, you must go in other places.

Although with the expertise you are going to acquire, you ought to be in a position to, in the words of the jQuery people themselves, write less, do more.

The author of this article is an expert in jQuery Training. You can find more information about Java Training on their website.

Why Choose React Native for Hybrid Mobile App

In recent times, React Native has emerged as powerful framework, and as a result the mobile app development has shot up. Major companies as well as the startups from different verticals are showing interest to invest in hybrid mobile app development based on react native, to boost their businesses.

The demand for fast development , minimal deployment time and better app performance are high. And, no one wants to stuck with writing code from scratch, writing and re-writing code, after all these seem daunting. Thus, the developers are adopting react native- as the pre-defined libraries and code on this framework, helps to achieve high-performance, feature-rich apps with cross-platform support that too within a short time frame.

Well, we are aware with the benefits of react Native, let’s have a brief and clear discussion, why this native is the best framework to build a hybrid app

Support for Multiple Platforms:

As we know,  iOS and Android are dominant platform, and the good news is, React Native supports these platforms without any issue. And, this reduces the developer’s effort to build app’s code from scratch. An additional benefit of this, open-source framework is, it also supports other platforms, including Windows, tvOS, etc.

Reuse of Existing Code:

React Native allows to working on the ‘Code once and use everywhere’ , thus the developers can reuse the already-written code for any particular platform which will saves time, effort and minimizes the deployment time of the app.

Third-party Plugin Compatibility:

One of the interesting capability of this platform is, it allows to import of functionalities offered by third-party plugins for your app, with no extra effort or using too much memory. In turn, this offers high functionality to the app that too with excellent performance.

User Interface:

Further, this platform focus on UI and utilizes JavaScript interaction with the native environment in order to develop apps that has rich, smooth, and highly fluid interface. And don’t take much time in loading as compared to hybrid apps built using other platforms.

Great Efficiency:

React Native produces native results, with additional speed and agility in the development process. Enhancing the ReactJS with speed, responsiveness, and DOM abstractions, react native provide ease to the hybrid app development process.

At Mobiloitte, we extend our full dedication in adopting new technology like React Native- and offers development process that opens up huge opportunities for businesses to expand and robust their presence with a hybrid mobile app.

Get experts from Mobiloitte, and unfold huge opportunities that will embark your success. Extend your the first step towards building your own hybrid app, we are ready to assist you 24*7 to develop your dream app.

Mobiloitte is a mobile and web application development company building apps for Start-ups to SMEs incorporating latest technologies. We develop next era of Mobile Apps for iOS, Android and Windows platform using Native & Cross-platform development approach. Our core competencies for Web Development include RoR, PHP, .Net, Java, and CMS including Drupal, WordPress, Magento & Joomla.

Click here for more information Mobiloitte

Things Every React.Js Beginner Should Know

React.Js, an open-source JavaScript library, first deployed on Facebook in 2011 and later in 2102 was used by Instagram. ReactJS is used to build user interfaces for single page applications and further allows to manage the view layer for the web and mobile apps easily. Further, using ReactJs, creating reusable UI components becomes easy, and attracts developers.

We know, this framework is robust and is quite popular among the developers as the development process comes with exceptional features like extensibility, adjustability, convenience, and cost-effectiveness. Let’s explore, what are the important aspects that should be kept in mind as a beginner;

React.Js is just a view library:

When we take into account the basic concept of React.Js, we can find it as a library that is used for rendering views. And if you compare it with the MVC, then it is totally different, React is just the ‘V’, part of the equation. As far M and C is concerned, developers are required to collect source from others, or it will end up messing your code.

Keep your components small:

Do you agree that small classes/modules are more easy to understand, test, and maintain? Of Course, developers are well aware of this fact, and the same goes with React components, the small it is, the more simple it is to understand do execute the further functions. Well, the exact size is dependent on different factors. However, whatever is the situation, a good developer will make components significantly smaller to make the development process easier.

How to write functional components:

Well. in order to define the components, as functions of props, React 0.14 has introduced a new syntax. And this helps to find out if the component needs to be split up or not. Hence, ‘limitations’, comes as the strength for the functional component. Further, the functional components do not have state attached to them.

How to write stateless components:

In React, the components that have many state are a big problem that tempers the development. Well, the main reasons for this are:

a) State makes components difficult to test
b) state makes components difficult to reason about
c) state makes it too easy to put business logic in the component
d) state makes it difficult to share information to other parts of the app.

Therefore, all these reasons should be kept in mind while using the react.Js framework.

Use Redux.js:

A big question while using this framework is, « where to put all state and logic? » Flux, is a style/pattern/architecture for designing web applications, that use React for rendering.

Mobiloitte is a mobile and web application development company building apps for Start-ups to SMEs incorporating latest technologies. We develop next era of Mobile Apps for iOS, Android and Windows platform using Native & Cross-platform development approach. Our core competencies for Web Development include RoR, PHP, .Net, Java, and CMS including Drupal, WordPress, Magento & Joomla.

Click here for more information Mobiloitte

Related React Articles

Learn More about ANGULARJS by Angularjs Training in Bangalore

What is AngularJS?

AngularJS is a MVC (Model – View – Control) based JavaScript Framework which grants us to make the HTML DOM dynamic. With JavaScript or jQuery, a static HTML DOM can be dynamically controlled at runtime yet using AngularJS structure the HTML DOM is made component in the midst of arrangement time.

Without a doubt, AngularJS has numerous components putting everything hanging in the balance. For a certain something, the JavaScript front-end application structure was created and is kept up by Google, which knows something about the Web.

It is this power, and the straightforwardness it actuates, that perhaps more than all else has appointed AngularJS the most acclaimed JavaScript framework today. Angularjs Training in Bangalore

However there are inspirations to trust that this time, its unmistakable – that AngularJS will remain extensively used long after the media development jubilee continues forward to the accompanying shimmering structure.

Standard, goodness, so notable:

The Web application feature has seen pioneers travel each which way. For example, SproutCore contributed years as the top structure. Regardless, it was removed by BackboneJS which, in this manner, has offered way to deal with EmberJS, as Google chase designs show up. In any case, nothing ponders to AngularJS. classes on AngularJS

Made in 2009 by Brat Tech engineers Miško Hevery and Adam Abrons, AngularJS was freely discharged not long after. Hevery went up against the heaviness of continued with progression in the wake of joining Google.

By 2015, in any occasion with respect to general interest, AngularJS had rendered each other structure a conforming bumble. The principle framework that seems to have a probability of standing out from AngularJS is ReactJS, a structure made at Facebook and now finding money with Netflix and other uber players on the Web.

Notoriety … at a cost:

This is essentially what creators said with respect to AngularJS when it initially turned out. In JavaScript structures, « sort of the month » may be too much liberal. It’s more like « sort existing apart from everything else, » with omnipresence and development waxing and after that slowing down one after another.

#1 Gives Structure to Your App

Consistently, when we create JavaScript there is no inside and out described structure. While this can work for little applications, this is unmistakably not sensible for colossal scale applications. With AngularJS you can structure your source code by taking after either the MVC (Model-View-Controller) or MVVM (Model-View-Viewmodel) outline. AngularJS is a MVW structure where W stays for Whatever works for you. You can deal with your code into modules, which definitely improves the testability and suitability of your application.

#2 Two-way Data Binding

Data confining is totally one the best components in AngularJS. You can definitively attach your models to HTML parts. Exactly when the models change, the view is normally revived in a different way. This hugely lessens the measure of standard code for the most part written to keep the model and view in a condition of agreement. AngularJS Classes in Bangalore

#3 Directives

AngularJS Directives let you demonstrate HTML new dialect structure. You can make reusable custom sections with the order API. For example, if you require a custom date picker device you can make a section. If you require some help record uploader with propel pointer you can basically ahead and make a part. Cool, would it say it isn’t?

#4 Templating with HTML

AngularJS uses HTML for templating. This keeps things essential and grants fashioners and designers to work in the meantime. Fashioners can make UIs in the standard way and originators can use complete confining sentence structure to tie unmistakable UI parts with data models easily.

#5 Embeddable, Injectable, and Testable

The best thing about AngularJS is that it’s a not too bad agreeable individual. It never requires full obligation. As the AngularJS official site says, you can use to such a degree or as small of AngularJS in your wander as you need. If you require only two way data official, you can join Angular and just use this component.

AngularJS supports Dependency Injection out of the box. If you require something, you basically approach Angular to implant it for you. It’s that clear. This immensely upgrades testability, as you can without quite a bit of an extend criticize the fragments in the midst of testing. best AngularJS Training Institute in Marathahalli Bangalore

AngularJS was made in light of testability. The modules and Dependency Injection structure make unit testing way less requesting. In addition, AngularJS offers a gadget called Protractor which makes End-to-End testing a breeze. In this manner, the code you make is always testable and practical.

That is not all! AngularJS in like manner offers various more accommodating components like coordinating, channels, and activitys that make AngularJS excellent. Nevertheless, the above concentrations were all that anybody could requirement for me to end up plainly pitifully enchanted with it.

Angularjs Training in Bangalore with real time scenarios at INFOCAMPUS is provided by a professional industrial expert. Free Trail classes on AngularJS before joining. Weekend batches will be available for the professionals.
For much more details on AngularJS Classes in Bangalore visit http://infocampus.co.in/angularjs-training-in-bangalore.html. Contact 9738001024 to make an enquiry. Infocampus is a best AngularJS Training Institute in Marathahalli Bangalore.

Vue admin | VueJS admin

https://vueadmintemplate.com

Clear is the one which attracts users with its excellent user interface and this admin template comes up with the most trending version2 of VueJS. Its design is impressive and bold which attracts the users to grab and uses it for their applications.
Clear is the most responsive admin template & built with VueJS, Bootstrap3, HTML5, CSS3. Clear admin template has number of selective plug-in with reusable components which helps you to extend the basic HTML elements to encapsulate the reusable code.

A Vue admin template allows the user to direct the structure of the application according to one’s own requirement and is the best suitable admin template for any type of web applications or any custom admin panels.

Bonus : It also comes with Laravel spark skin which is the best scaffolding tool for SAAS services available in the market.

Clear admin panel built with SASS so that user can choose new colour scheme and it also comes with multiple page layouts. Clear has both light & dark versions which user can choose any of it as they like.

More information about Vue admin template :

* Vue admin panel has a dynamic framework and is available in three versions : VueJS version,
Laravel spark skin version, Bootstrap version.

* Version 1.1 added with Vue.JS files including native Vuejs components.

* Version 1.2 powered with Vue.js light version & added plug-ins like
Vue-multiselect , Vue-Slider.

* Version 1.3 : Vue.js version is simplified and added documentation.

* Version 1.4 : Provided simplified Vue.js version with updated documentation.

* Version 1.6 : Released bonus product Laravel spark skin with clear color scheme.

* Version 1.7 : Updated with Horizontal menu & Mini side bar menu.

* Version 2.0 : Powered with Laravel mix for easy build system.

* Version 2.3 : Added with Vuex ( is a state manage pattern + Library for Vue.js applications).

Clear admin template can be useful for any kind of the web application : CRM, Admin panels , Dashboard etc . Clear is fully responsive which looks great on Desktops, Mobiles & Tablets.

https://themeforest.net/item/clear-bootstrap-vuejs-admin-template/19339739

Now a days, VueJS has become trending technology in IT software and here is one of the web application of VueJS. Clear admin template is the ever best admin template for those who are starting their startup managements for professionals as it is based on the BOOTSTRAP : contains HTML, CSS based designs for typography, forms, buttons, navigation and other interface components as well as javascript extensions.

More Vuejs Articles

20 New jQuery Plugins That Are Taking the Design World By Storm

One of the best things about jQuery is that it is constantly devising impressive new plugins for everyone to make use of free of cost. The only issue is that there are so many jQuery plugins in the market today that choosing one becomes difficult. Here are 20 of the best jQuery plugins to take a look at.
1. Tabslet
The jQuery plugin for tabs is Tabslet. It supports rotation, custom events, and animation and is compatible with most modern web browsers.
2. Offreg
If you want to turn your images into RGB ‘prints’, choose Offreg. The plugin needs to be applied to any HTML element, an image SRC needs to be provided and offset value needs to be inserted. This rendering however, does not look great in Google Chrome.
3. CLNDR.js
CLNDR.js is a jQuery plugin that helps in creating calendars. You have to provide an Underscore.js HTML template, instead of generating the markup. It takes your template and then proceeds to inject the calendar data into it.
4. jQuery Fullscreen Editor
Transforms text fields into customizable editors with jQuery Fullscreen Editor. You can use it by itself or even on forms. Most common web browsers are supported by the plugin and it comes with two different transitions.
5. jVanilla Menu
jVanilla Menu is a simple jQuery menu plugin that takes an existing CSS drop-down menu, and adds enhancements such as submenu levels, animations, and timeout delays to it.
6. jQuery Responsive Tabs
This is jQuery plugin provides responsive tab functionality, with the tabs transforming into an accordion when it reaches a CSS breakpoint.
7. Snap.svg
Working with your SVG assets will be as easy as pie with the new Snap.svg JavaScript library.
8. jQuery-Mapael
Display dynamic vector maps with Mapael, a jQuery plugin based on raphael.js.
9. Moa Modal
Moa Modal is a jQuery modal plugin that comes with positioning and custom animationss.
10. FlowType.JS
Configure your line height ratios and font size with FlowType.js to improve the appeal of the typography of your project.
11. Squishy
Squishy is a jQuery plugin that resizes text automatically to exactly fit the container.
12. Succinct
Succint is a minimal jQuery plugin that can truncate multiple lines of text, shorten it to a given size, and adds an ellipsis to its end.
13. FailSafe
FailSafe lets your application work smoothly when you lose internet connectivity or run out of laptop battery. It can also disable elements that can drain your battery or require an active internet connection.
14. Sticky-Kit
With Sticky Kit, you can create smart sticky elements and attach them to the page, so that they are always visible when the user scrolls.
15. ContentShare
With ContentShare, you can share the content from a page on a social network. You can specify and select what content you wish to share, instead of the default meta tags. It supports Twitter and Facebook, though you can add additional social networks too.
16. Owl Carousel
This a touch enabled jQuery plugin lets you create responsive carousel sliders.
17. CarouFredSel
With CarouFredSel, you can turn any HTML element into a carousel. Not only is it dual-licensed under GPL and MIT, but it also has its own WordPress plugin.
18. Excolo-Slider
Excolo Slider is a simple jQuery slider plugin that supports touch and responsive design. It comes with mouse slider navigation, autoplay slideshow, pagination and many other features.
19. Glide.js
Glide.js is a simple and responsive slider plugin with fully customizable OOCSS markup.
20. FilmRoll
FilmRoll is a simple, lightweight jQuery carousel plugin that centres the selected item on the page.

Infinista Concepts is a super creative new age digital agency, we are headquartered at the US but our clientele is spread all over the globe. We indulge into services like Web Design, Web Development, SEO, SMM, Content Marketing. All we can say is we are a one stop shop for all your online needs.
http://www.infinistaconcepts.com/20-new-jquery-plugins-that-are-taking-the-design-world-by-storm/

Find More Jquery Articles

Start Working With AngularJS

Start Working With AngularJS

AngularJS is a Javascript MVC framework created by Google to build properly architectured and maintenable web applications.

AngularJS takes another approach. It attempts to minimize the impedance mismatch between document centric HTML and what an application needs by creating new HTML
constructs. AngularJS teaches the browser new syntax through a construct we call directives. Examples include:

Data binding, as in {{}}.
DOM control structures for repeating, showing and hiding DOM fragments.
Support for forms and form validation.
Attaching new behavior to DOM elements, such as DOM event handling.
Grouping of HTML into reusable components.

Why AngularJS?

AngularJS is a MVC framework that defines numerous concepts to properly organize our web application. Our application is defined with modules that can depend from one
to the others. It enhances HTML by attaching directives to your pages with new attributes or tags and expressions in order to define very powerful templates directly in your HTML. It also encapsulates the behavior of your application in controllers which are instanciated thanks to dependency injection. Thanks to the use of dependency injection, AngularJS helps you structure and test your Javascript code very easily. Finally, utility code can easily be factorized into services that can
be injected in your controllers. Now let’s have a closer look at all those features.

Feature 1: Two Way Data-Binding

Think of your model as the single-source-of-truth for your application. Your model is where you go to to read or update anything in your application.

Data-binding is probably the coolest and most useful feature in AngularJS. It will save you from writing a considerable amount of boilerplate code. A typical web application may contain up to 80% of its code base, dedicated to traversing, manipulating, and listening to the DOM. Data-binding makes this code disappear,so wecan focus on our application.

Think of your model as the single-source-of-truth for your application. Your model is where you go to to read or update anything in your application. The data-binding
directives provide a projection of your model to the application view. This projection is seamless and occurs without any effort from you.

Traditionally, when the model changes, the developer is responsible for manually manipulating the DOM elements and attributes to reflect these changes. This is a
two-way street. In one direction, the model changes drive change in DOM elements. In the other, DOM element changes necessitate changes in the model. This is further complicated by user interaction, since the developer is then responsible for interpreting the interactions, merging them into a model, and updating the view. This is
a very manual and cumbersome process, which becomes difficult to control, as an application grows in size and complexity.

There must be a better way! AngularJS’ two-way data-binding handles the synchronization between the DOM and the model, and vice versa.

Here is a simple example, which demonstrates how to bind an input value to an

element.

Name:

Enter a name here

Hello, {{yourName}}!

This is extremely simple to set up, and almost magical…

Feature 2: Templates

It’s important to realize that at no point does AngularJS manipulate the template as strings. It’s all the browser DOM.

In AngularJS, a template is just plain-old-HTML. The HTML vocabulary is extended, to contain instructions on how the model should be projected into the view.

The HTML templates are parsed by the browser into the DOM. The DOM then becomes the input to the AngularJS compiler. AngularJS traverses the DOM template for
rendering instructions, which are called directives. Collectively, the directives are responsible for setting up the data-binding for your application view.

It is important to realize that at no point does AngularJS manipulate the template as strings. The input to AngularJS is browser DOM and not an HTML string.
The data-bindings are DOM transformations, not string concatenations or inner HTML changes. Using the DOM as the input, rather than strings, is the biggest differentiation AngularJS has from its sibling frameworks. Using the DOM is what allows you to extend the directive vocabulary and build your own directives, or
even abstract them into reusable components!

One of the greatest advantages to this approach is that it creates a tight workflow between designers and developers. Designers can mark up their HTML as they normally
would, and then developers take the baton and hook in functionality, via bindings with very little effort.

Here is an example where I am using the ng-repeat directive to loop over the images array and populate what is essentially an img template.

function AlbumCtrl($ scope) {
scope.images = [
{« thumbnail »: »img/image_01.png », « description »: »Image 01 description »},
{« thumbnail »: »img/image_02.png », « description »: »Image 02 description »},
{« thumbnail »: »img/image_03.png », « description »: »Image 03 description »},
{« thumbnail »: »img/image_04.png », « description »: »Image 04 description »},
{« thumbnail »: »img/image_05.png », « description »: »Image 05 description »}
];
}

{{image.description}}

It is also worth mentioning, as a side note, that AngularJS does not force you to learn a new syntax or extract your templates from your
application.

Feature 3: MVC

AngularJS incorporates the basic principles behind the original MVC software design pattern into how it builds client-side web applications.

The MVC or Model-View-Controller pattern means a lot of different things to different people. AngularJS does not implement MVC in the traditional sense, but rather
something closer to MVVM (Model-View-ViewModel).

The Model

The model is simply the data in the application. The model is just plain old JavaScript objects. There is no need to inherit from framework classes, wrap it in proxy objects, or use special getter/setter methods to access it. The fact that we are dealing with vanilla JavaScript is a really nice feature, which cuts down on the application boilerplate.

The ViewModel
A viewmodel is an object that provides specific data and methods to maintain specific views.

The viewmodel is the $ scope object that lives within the AngularJS application. $ scope is just a simple JavaScript object with a small API designed to detect and
broadcast changes to its state.

The Controller
The controller is responsible for setting initial state and augmenting $ scope with methods to control behavior. It is worth noting that the controller does not store state and does not interact with remote services.

The View
The view is the HTML that exists after AngularJS has parsed and compiled the HTML to include rendered markup and bindings.

This division creates a solid foundation to architect your application. The $ scope has a reference to the data, the controller defines behavior, and the view handles
the layout and handing off interaction to the controller to respond accordingly.

Feature 4: Dependency Injection

AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test.

Dependency Injection (DI) allows you to ask for your dependencies, rather than having to go look for them or make them yourself. Think of it as a way of saying
« Hey I need X’, and the DI is responsible for creating and providing it for you.

To gain access to core AngularJS services, it is simply a matter of adding that service as a parameter; AngularJS will detect that you need that service and provide
an instance for you.

function EditCtrl($ scope, $ location, $ routeParams) {
// Something clever here…
}
You are also able to define your own custom services and make those available for injection as well.

angular.
module(‘MyServiceModule’, []).
factory(‘notify’, [‘$ window’, function (win) {
return function (msg) {
win.alert(msg);
};
}]);

function myController(scope, notifyService) {
scope.callNotify = function (msg) {
notifyService(msg);
};
}

myController.$ inject = [‘$ scope’, ‘notify’];

Feature 5: Directives

Directives are my personal favorite feature of AngularJS. Have you ever wished that your browser would do new tricks for you? Well, now it can! This is one of my favorite parts of AngularJS. It is also probably the most challenging aspect of AngularJS.

Directives can be used to create custom HTML tags that serve as new, custom widgets. They can also be used to « decorate » elements with behavior and manipulate DOM
attributes in interesting ways.

Here is a simple example of a directive that listens for an event and updates its $ scope, accordingly.

myModule.directive(‘myComponent’, function(mySharedService) {
return {
restrict: ‘E’,
controller: function($ scope, $ attrs, mySharedService) {
$ scope.$ on(‘handleBroadcast’, function() {
$ scope.message = ‘Directive: ‘ + mySharedService.message;
});
},
replace: true,
template: ‘

};
});
Then, you can use this custom directive, like so.

Creating your application as a composition of discrete components makes it incredibly easy to add, update or delete functionality as needed.

we will discuss here about how to set up AngularJS library to be used in web application development. We will also briefly study the directory structure and its
contents.

When you open the link https://angularjs.org/, you will see there are two options to download AngularJS library –

AngularJS Download
View on GitHub – Click on this button to go to GitHub and get all of the latest scripts.

Download AngularJS 1 – Or click on this button, a screen as below would be seen –

AngularJS Download
This screen gives various options of using Angular JS as follows –

Downloading and hosting files locally

There are two different options legacy and latest. The names itself are self descriptive. legacy has version less than 1.2.x and latest has 1.5.x version.

We can also go with the minified, uncompressed or zipped version.

CDN access – You also have access to a CDN. The CDN will give you access around the world to regional data centers that in this case, Google host. This means using
CDN moves the responsibility of hosting files from your own servers to a series of external ones. This also offers an advantage that if the visitor to your webpage
has already downloaded a copy of AngularJS from the same CDN, it won’t have to be re-downloaded.

Try the new angularJS 2 – Click on this button to download Angular JS beta 2 version.This version is very fast, mobile supported and flexible compare to legacy and

latest of AngularJS 1

We are using the CDN versions of the library throughout this tutorial.
Example
Now let us write a simple example using AngularJS library. Let us create an HTML file myfirstexample.html as below –

Welcome {{helloTo.title}} to the world of Tutorialspoint!

Following sections describe the above code in detail –

Include AngularJS

We have included the AngularJS JavaScript file in the HTML page so we can use AngularJS –

If you want to update into latest version of Angular JS, use the following script source or else Check the latest version of AngularJS on their official website.
Point to AngularJS app Next we tell what part of the HTML contains the AngularJS app. This done by adding the ng-app attribute to the root HTML element of the AngularJS app. You can either add it to html element or body element as shown below –

View
The view is this part –

Welcome {{helloTo.title}} to the world of Tutorialspoint!

ng-controller tells AngularJS what controller to use with this view. helloTo.title tells AngularJS to write the « model » value named helloTo.title to the HTML at this
location.

Controller
The controller part is –

This code registers a controller function named HelloController in the angular module named myapp. We will study more about modules and controllers in their respective chapters. The controller function is registered in angular via the angular.module(…).controller(…) function call.

The $ scope parameter passed to the controller function is the model. The controller function adds a helloTo JavaScript object, and in that object it adds a title field.

Execution
Save the above code as myfirstexample.html and open it in any browser. You will see an output as
below –

Welcome AngularJS to the world of Tutorialspoint!
When the page is loaded in the browser, following things happen –

HTML document is loaded into the browser, and evaluated by the browser. AngularJS JavaScript file is loaded, the angular global object is created. Next, JavaScript which registers controller functions
is executed.

Next AngularJS scans through the HTML to look for AngularJS apps and views. Once view is located, it connects that view to the corresponding controller function.

Next, AngularJS executes the controller functions. It then renders the views with data from the model populated by the controller. The page is now ready.