{"id":349,"date":"2016-10-21T10:43:05","date_gmt":"2016-10-21T10:43:05","guid":{"rendered":"http:\/\/www.cotocus.com\/blog\/?p=349"},"modified":"2016-10-21T10:43:05","modified_gmt":"2016-10-21T10:43:05","slug":"best-tutorial-angularjs","status":"publish","type":"post","link":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/","title":{"rendered":"Best Tutorial AngularJS"},"content":{"rendered":"<p>This tutorial is specially designed to help \u00a0learn <strong>AngularJS<\/strong> as quickly and efficiently as possible.<\/p>\n<p>First, learn the basics of <strong>AngularJS<\/strong>: directives, expressions, filters, modules, and controllers.<\/p>\n<p>Then learn everything else need to know about <strong>AngularJS<\/strong>:<\/p>\n<p>Events, DOM, Forms, Input, Validation, HTTP, and more.<\/p>\n<ul>\n<li><strong>AngularJS<\/strong> extends HTML with new attributes.<\/li>\n<li><strong>AngularJS<\/strong> is perfect for Single Page Applications (SPAs).<\/li>\n<li><strong>AngularJS<\/strong> is easy to learn.<\/li>\n<\/ul>\n<p>Before study <strong>AngularJS <\/strong>\u00a0a basic understanding of:<\/p>\n<ul>\n<li>HTML<\/li>\n<li>CSS<\/li>\n<li>JavaScript<\/li>\n<\/ul>\n<p><strong>History of AngularJS<\/strong><\/p>\n<ul>\n<li>AngularJS version 1.0 was released in 2012.<\/li>\n<li>Misko Hevery, a Google employee, started to work with AngularJS in 2009.<\/li>\n<li>The idea turned out very well, and the project is now officially supported by Google.<\/li>\n<\/ul>\n<p><strong>Introduction<\/strong><\/p>\n<p>AngularJS is <strong>JavaScript Frame work<\/strong>. It can be added to an HTML page with a &lt;script&gt; tag.<\/p>\n<p class=\"intro\">AngularJS extends HTML attributes with <strong>Directives<\/strong>, and binds data to HTML with <strong>Expressions<\/strong>.<\/p>\n<p>AngularJS is a <strong>JavaScript framework<\/strong>. Because it \u00a0is a library written in JavaScript.\u00a0AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag:<\/p>\n<p>&nbsp;<\/p>\n<p>AngularJS binds data to HTML using <strong>Expressions.<\/strong><\/p>\n<ul>\n<li>AngularJS expressions can be written inside double braces: <code class=\"w3-codespan\">{{ <em>expression<\/em> }}<\/code>.<\/li>\n<li>AngularJS expressions can also be written inside a directive: <code class=\"w3-codespan\">ng-bind=\"<em>expression<\/em>\"<\/code>.<\/li>\n<li>AngularJS will resolve the expression, and return the result exactly where the expression is written.<\/li>\n<\/ul>\n<p><strong>AngularJS expressions<\/strong> are much like <strong>JavaScript expressions:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div class=\"w3-example\">Now discuss about the differentiate between <strong>AngularJS expression<\/strong> and <strong>JavaScript expression<\/strong>.<\/div>\n<div class=\"w3-example\">\n<ul>\n<li>Like JavaScript expressions, AngularJS expressions can contain literals, operators, and variables.<\/li>\n<li>Unlike JavaScript expressions, AngularJS expressions can be written inside HTML.<\/li>\n<li>AngularJS expressions do not support conditionals, loops, and exceptions, while JavaScript expressions do.<\/li>\n<li>AngularJS expressions support filters, while JavaScript expressions do not.<\/li>\n<\/ul>\n<\/div>\n<p><strong>AngularJS Module:\u00a0<\/strong>An AngularJS module defines an\u00a0application.\u00a0The module is a container for the different parts of an application.\u00a0The module is a container for the application controllers.\u00a0Controllers always belong to a module.<\/p>\n<p><strong>AngularJS Directive:<\/strong>\u00a0\u00a0An directives are markers on a DOM element that tell AngularJS\u00a0<strong>HTML compiler<\/strong>\u00a0to attach a specified behavior to that DOM element or even to transform the DOM element. A\u00a0set of these directives built-in, like <code><span class=\"pln\">ng-Bind<\/span><\/code>, <code><span class=\"pln\">ng-Model<\/span><\/code>, and <code><span class=\"pln\">ng-Class<\/span><\/code>. Much like create controllers and services, you can create your own directives for Angular to use.<\/p>\n<p><strong>In addition to all the built-in AngularJS directives, you can create your own directives.<\/strong><\/p>\n<ul>\n<li>New directives are created by using the <code class=\"w3-codespan\">.directive<\/code> function.<\/li>\n<li>To invoke the new directive, make an HTML element with the same tag name as the new directive.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>This tutorial is specially designed to help \u00a0learn AngularJS as quickly and efficiently as possible. First, learn the basics of AngularJS: directives, expressions, filters, modules, <a class=\"mh-excerpt-more\" href=\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\" title=\"Best Tutorial AngularJS\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":8,"featured_media":399,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-349","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Best Tutorial AngularJS - Cotocus<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Tutorial AngularJS - Cotocus\" \/>\n<meta property=\"og:description\" content=\"This tutorial is specially designed to help \u00a0learn AngularJS as quickly and efficiently as possible. First, learn the basics of AngularJS: directives, expressions, filters, modules, [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\" \/>\n<meta property=\"og:site_name\" content=\"Cotocus\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-21T10:43:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"450\" \/>\n\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Narayan Rajak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Narayan Rajak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\"},\"author\":{\"name\":\"Narayan Rajak\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a\"},\"headline\":\"Best Tutorial AngularJS\",\"datePublished\":\"2016-10-21T10:43:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\"},\"wordCount\":407,\"image\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\",\"url\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\",\"name\":\"Best Tutorial AngularJS - Cotocus\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg\",\"datePublished\":\"2016-10-21T10:43:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage\",\"url\":\"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg\",\"contentUrl\":\"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg\",\"width\":450,\"height\":250},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cotocus.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best Tutorial AngularJS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/#website\",\"url\":\"https:\/\/www.cotocus.com\/blog\/\",\"name\":\"Cotocus\",\"description\":\"Shaping Tomorrow\u2019s Tech Today\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotocus.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a\",\"name\":\"Narayan Rajak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e411369c23bd4c981f8f95b58fefaae9f4d223f53cc9869abddf0d29fb59b6df?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e411369c23bd4c981f8f95b58fefaae9f4d223f53cc9869abddf0d29fb59b6df?s=96&d=mm&r=g\",\"caption\":\"Narayan Rajak\"},\"sameAs\":[\"http:\/\/www.cotocus.com\"],\"url\":\"https:\/\/www.cotocus.com\/blog\/author\/narayan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Best Tutorial AngularJS - Cotocus","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/","og_locale":"en_US","og_type":"article","og_title":"Best Tutorial AngularJS - Cotocus","og_description":"This tutorial is specially designed to help \u00a0learn AngularJS as quickly and efficiently as possible. First, learn the basics of AngularJS: directives, expressions, filters, modules, [...]","og_url":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/","og_site_name":"Cotocus","article_published_time":"2016-10-21T10:43:05+00:00","og_image":[{"width":450,"height":250,"url":"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg","type":"image\/jpeg"}],"author":"Narayan Rajak","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Narayan Rajak","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#article","isPartOf":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/"},"author":{"name":"Narayan Rajak","@id":"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a"},"headline":"Best Tutorial AngularJS","datePublished":"2016-10-21T10:43:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/"},"wordCount":407,"image":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg","articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/","url":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/","name":"Best Tutorial AngularJS - Cotocus","isPartOf":{"@id":"https:\/\/www.cotocus.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage"},"image":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg","datePublished":"2016-10-21T10:43:05+00:00","author":{"@id":"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a"},"breadcrumb":{"@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#primaryimage","url":"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg","contentUrl":"https:\/\/www.cotocus.com\/blog\/wp-content\/uploads\/2016\/10\/angularjs1-1.jpg","width":450,"height":250},{"@type":"BreadcrumbList","@id":"https:\/\/www.cotocus.com\/blog\/best-tutorial-angularjs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cotocus.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Best Tutorial AngularJS"}]},{"@type":"WebSite","@id":"https:\/\/www.cotocus.com\/blog\/#website","url":"https:\/\/www.cotocus.com\/blog\/","name":"Cotocus","description":"Shaping Tomorrow\u2019s Tech Today","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotocus.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/56c50f2d7b47d29cc09c7e68e8012f6a","name":"Narayan Rajak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cotocus.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e411369c23bd4c981f8f95b58fefaae9f4d223f53cc9869abddf0d29fb59b6df?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e411369c23bd4c981f8f95b58fefaae9f4d223f53cc9869abddf0d29fb59b6df?s=96&d=mm&r=g","caption":"Narayan Rajak"},"sameAs":["http:\/\/www.cotocus.com"],"url":"https:\/\/www.cotocus.com\/blog\/author\/narayan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":4,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/posts\/349\/revisions\/401"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/media\/399"}],"wp:attachment":[{"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotocus.com\/blog\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}