Understand haxejs-angular app How to write app in OOP(Haxe) and Dependency Injection Way(Angular)?

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Advertisements

OO Programming in Java Objectives for today: Overriding the toString() method Polymorphism & Dynamic Binding Interfaces Packages and Class Path.
1) Scope a] Ada scope rules b] C scope rules 2) Parameter passing a] Ada parameter modes b) Parameter passing mechanisms COMP205 IMPERATIVE LANGUAGES 13.
INTERFACES IN JAVA 1.Java Does not support Multiple Inheritance directly. Multiple inheritance can be achieved in java by the use of interfaces. 2.We need.
METHOD OVERRIDING Sub class can override the methods defined by the super class. Overridden Methods in the sub classes should have same name, same signature.
1 Chapter 6: Extending classes and Inheritance. 2 Basics of Inheritance One of the basic objectives of Inheritance is code reuse If you want to extend.
Week 4 Recap CSE 115 Spring Formal Parameter Lists Comma-separated list of formal parameters Formal parameters are listed giving the type of the.
Overloaded Constructors constructors can be overloaded, like other methods – i.e., a class can define several constructors all constructors must have the.
1 Chapter 6 Inheritance, Interfaces, and Abstract Classes.
Run-Time Storage Organization
1 © Talend 2014 Service Locator Talend ESB Training 2014 Jan Bernhardt Zsolt Beothy-Elo
Chapter 6 Class Inheritance F Superclasses and Subclasses F Keywords: super F Overriding methods F The Object Class F Modifiers: protected, final and abstract.
Introduction to Object Oriented Programming. Object Oriented Programming Technique used to develop programs revolving around the real world entities In.
A class in Java is a software construct that includes fields (also called data fields or class scope variables) to provide data specification, and methods.
Lecture # 5 Methods and Classes. What is a Method 2 A method is a set of code which is referred to by name and can be called (invoked) at any point in.
Nested References 2 inner reference data types Classes-Interfaces.
Junit At the forefront of Test Driven Development.
JAVA BASICS Prepared by The Smartpath Information Systems
Inheritance in the Java programming language J. W. Rider.
Building Rich Apps with AngularJS on ASP.NET.
1.  At the end of this slide, student able to:  Object-Oriented Programming  Research on OOP features.  Do a code walkthrough to examine the implementation.
Programming in Java CSCI-2220 Object Oriented Programming.
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Chapter 3 Introduction to Classes and Objects Definitions Examples.
Angular JS Angular services. Dependency injection AngularJS comes with a built-in dependency injection mechanism. You can.
Chapter 8 Class Inheritance and Interfaces F Superclasses and Subclasses  Keywords: super F Overriding methods  The Object Class  Modifiers: protected,
BIT116: Scripting Associative Arrays. Today AngularJS Q + A for the exam 2.
Bulding a Modular Application with Coherence David Whitmarsh Independent Contractor Technical Architect Investment Banks
Java Programming, Second Edition Chapter Twelve Advanced Inheritance Concepts.
Chapter 11: Advanced Inheritance Concepts. Objectives Create and use abstract classes Use dynamic method binding Create arrays of subclass objects Use.
Inheritance Inheritance is the process of extending the functionality of a class by defining a new class that inherit,all the features of extending class.
1 Chapter 8 Class Inheritance and Interfaces F Superclasses and Subclasses  Keywords: super F Overriding methods  The Object Class  Modifiers: protected,
YG - CS Concept of Encapsulation What is encapsulation? - data and functions/methods are packaged together in the class normally.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Interfaces Are used to model weak inheritance relationships Object-inheritance.
Object Oriented Programming in Java Habib Rostami Lecture 10.
This In Java, the keyword this allows an object to refer to itself. Or, in other words, this refers to the current object – the object whose method or.
Classes CS 162 (Summer 2009). Parts of a Class Instance Fields Methods.
AngularJS Best Practices High Quality SPA Applications SoftUni Team Technical Trainers Software University
Objects and Classes. F OO Programming Concepts F Creating Objects and Object Reference Variables –Differences between primitive data type and object type.
Introduction to Object-oriented Programming
Advanced Programming in Java
Extra Course
Object-Oriented Programming & Design Lecture 18 Martin van Bommel
AngularJS A Gentle Introduction John
This pointer, Dynamic memory allocation, Constructors and Destructor
Jessica Betts, Sophia Pandey, & Ryan Amundson
Interfaces and Inner Classes
CS240: Advanced Programming Concepts
Step by Step - AngularJS
Angular (JS): A Framework for Dynamic Web Pages
Interface.
Interfaces.
Class Commenting Doxygen for Classes.
Nate Brunelle Today: Functions again, Scope
Objectives In this lesson you will learn about: Need for servlets
Unit 1 Lab16.
SystemVerilog for Verification
Recitation 7 October 7, 2011.
06 | Using AngularJS to create an SPA
Constructors, GUI’s(Using Swing) and ActionListner
CS5220 Advanced Topics in Web Programming Angular – TypeScript
MATERI PL/SQL Procedures Functions Packages Database Triggers
Chapter 8 Class Inheritance and Interfaces
CS5220 Advanced Topics in Web Programming Angular – TypeScript
Subtype Substitution Principle
Introduce to Angular 6 Present by: Võ Văn Hào
Top-Rated AngularJs Development Company in India
Chapter 11 Inheritance and Encapsulation and Polymorphism
មជ្ឈមណ្ឌលកូរ៉េ សហ្វវែរ អេច អ ឌី
05 | An Introduction to AngularJS
Presentation transcript:

Understand haxejs-angular app How to write app in OOP(Haxe) and Dependency Injection Way(Angular)?

Package to be angularjs module name 1) They all belong to “test” module 2) Module dependencies will be managed automatically

Group components into different classes(files) by type Total 11 types of components: 1)Controller 2)Directive 3)Service 4)Config 5)Run 6)Constant 7)Value 8)Filter 9)Provider 10)Animation 11)Factory

Each type class(file) should 1) Implement an interface, like IControllers 2) Has a public static main function 3) Remember to import ng.Angular even your code does not use any of it

Every component should use meta to inject dependencies (it can be empty) 2)Static Dynamic variable name to be the name of your component 3)$scope component is of NgScope type ($->Ng)

Component can be a class Like service, controller, provider

Component can be a function Like config, run, directive

Controller component should extend BaseCtrl class 1)Call super() in new function 2)Camel class name to be the object name inside html code

Provider component should extend BaseProvider with get function 1)Invoke service by “xx” name to access what get function returns 2)Config service by “xxProvider” name to call setting functions like “change”