Free Essay

Web Tehnology

In:

Submitted By emilike
Words 1118
Pages 5
Shaping Up with Angular
Level 1: Getting Started

What you need to know
Must know
HTML & CSS
JavaScript

Not so important jQuery Ruby on Rails
Python, PHP, etc

Nice to know
Automated Testing
BDD - Behavior Driven Development
TDD - Test Driven Development etc Databases

Why

Angular?

If you’re using JavaScript to create a dynamic website,
Angular is a good choice.
• Angular helps you organize your JavaScript
• Angular helps create responsive (as in fast) websites.
• Angular plays well with jQuery
• Angular is easy to test

Traditional Page-Refresh

Screencast: Request-Response Application
NOTE: Time between user 
 interaction and response.

Web Server

Web Browser
URL Request to server

HTML JavaScript

Response with Webpage & Assets
Browser loads up entire webpage.
User clicks on link, new Request

HTML JavaScript

Response with Webpage & Assets
Browser loads up entire webpage.

A “responsive” website using Angular

Screencast: Request-Response Application
NOTE: Note how responsive the page is

Web Server

Web Browser
URL Request to server

HTML JavaScript

Response with Webpage & Assets
Browser loads up entire webpage.
User clicks on link, new Request

DATA

Response with JSON Data
Data is loaded into existing page.

Modern API-Driven Application
Server
Data
Source

HTML

API

Mobile
App
Developers

Browser
App

What is Angular JS?
A client-side JavaScript Framework for adding interactivity to HTML.

How do we tell our HTML when to trigger our JavaScript?

. . .

function Store
(){ alert('Welcome, Gregg!');

}


index.html

app.js

Directives
A Directive is a marker on a HTML tag that tells Angular to run or reference some JavaScript code.

. . .

index.html

function Store
Controller(){ alert('Welcome, Gregg!');

}


Name of function to call

app.js

The Flatlanders Store!

Screencast: Flatlanders Store
Fully Functional

Downloading the libraries
Download AngularJS http://angularjs.org/
We’ll need angular.min.js

Download Twitter Bootstrap http://getbootstrap.com/
We’ll need bootstrap.min.css

Getting Started

Twitter Bootstrap

AngularJS

index.html

Modules
• Where we write pieces of our Angular application.
• Makes our code more maintainable, testable, and readable.
• Where we define dependencies for our app.

Modules can use other Modules...

Creating Our First Module var app = angular.module('store', [ ]);

AngularJS

Application Dependencies
Other libraries we might need. 

Name
We have none... for now…

Including Our Module

index.html

var app = angular.module('store', [ ]);

app.js

Including Our Module
Run this module when the document loads. href="bootstrap.min.css" />


Reviews

index.html

Assigning a value to tab.
For now just print this value to the screen.

Introducing a new Directive!

Whoa, it’s dynamic and stuff...
When ng-click changes the value of tab …
… the {{tab}} expression automatically gets updated!
!

Expressions define a 2-way Data Binding ... this means Expressions are re-evaluated when a property changes.

Let’s add the tab content panels tabs are up here...

. . .

Description

{{product.description}}


Specifications

None yet


Reviews

None yet


How do we make the tabs trigger the panel to show?

Let’s add the tab content panels

Description

{{product.description}}


Specifications

None yet


Reviews

None yet


show the panel if tab is the right number

Now when a tab is selected it will show the appropriate panel!

But how do we set an initial value for a tab?

Setting the Initial Value ng-init allows us to evaluate an expression in the current scope.

Description 
 Specifications 
 Reviews 


. . .

index.html

Now with the Initial Tab

Setting the Active Class
We need to set the class to active if current tab is selected ...

Description

Specifications

Expression to evaluate
If true, set class to “active”, otherwise nothing.

Reviews

. . .

Name of the class to set.

index.html

Feels dirty, doesn’t it?
All our application’s logic is inside our HTML.

>
Description

>

Specifications

>

Reviews

Description 

{{product.description}}




How might we pull this logic into a Controller?

index.html

Creating our Panel Controller

>
Description

>

Specifications

>

Reviews

Description 

{{product.description}}


app.controller("PanelController", function(){

});

index.html app.js Moving our tab initializer

>
Description

>

Specifications

>
Reviews

Description 

{{product.description}}


app.controller("PanelController", function(){

this.tab = 1;
});

index.html app.js Creating our selectTab function

>
Description

>
Specifications

>

Reviews

app.controller("PanelController", function(){

this.tab = 1;
Description 

{{product.description}}
 this.selectTab = function(setTab) {

this.tab = setTab;

}; index.html });

app.js

Creating our isSelected function

Description

Specifications

Reviews

app.controller("PanelController", function(){

this.tab = 1;

Description 
 this.selectTab = function(setTab) { this.tab = setTab;
{{product.description}}

};

this.isSelected = function(checkTab){

return this.tab === checkTab;

};
});

index.html app.js Challenges

Shaping Up with Angular
Level 3: Forms, Models, and Validations

More Directives: Forms & Models
How can I let my users add content?

Adding reviews to our products app.controller("StoreController", function(){
 this.products = [

{ 

name: 'Awesome Multi-touch Keyboard', 
 price: 250.00,
 description: "...",
 images: [...],
 reviews: [

{ 

stars: 5,
 body: "I love this product!",
 author: "joe@thomas.com"

},

{ 
 stars: 1,
 body: "This product sucks",
 author: "tim@hater.com"

}

. . .

app.js

Looping Over Reviews in our Tab . . .
 Reviews 


Stars: {{review.stars}}

{{review.body}}

by: {{review.author}} 


index.html

We’re displaying Reviews!

Nothing new here, but how do we start to implement forms?

Writing out our Review Form Reviews 
 ...

1 star

2 stars

. . .


by:

index.html

With Live Preview,.

Stars: {{review.stars}}

{{review.body}}

by: {{review.author}} 


1 star

2 stars

. . .


by:

How do we bind this review object to the form?

index.html

Introducing ng-model&,

Stars: {{review.stars}}

{{review.body}}

by: {{review.author}} 


1 star

2 stars

. . .


by:

ng-model binds the form element value to the property

index.html

Live Preview In Action

But how do we actually add the new review?

Two More Binding Examples
With a Checkbox I agree to the terms

Sets value to true or false
With Radio Buttons
What color would you like? 


Red 
 Blue 
 Green


Sets the proper value based on which is selected

Challenges

We need to Initialize the Review

Stars: {{review.stars}}
{{review.body}}
by: {{review.author}}

We could do ng-init, but we’re better off creating a controller.

1 star

2 stars

. . .


by:

index.html

Creating the Review Controller& app.controller("ReviewController", function(){
 this.review = {};
});

app.js

Stars: {{review.stars}}
{{review.body}}
by: {{review.author}}

Now we need to update all the Expressions to use this controller alias.

1 star

2 stars

. . .


index.html

Using the reviewCtrl.review app.controller("ReviewController", function(){
 this.review = {};
});

app.js

Stars: {{reviewCtrl.review.stars}}
{{reviewCtrl.review.body}}
by: {{reviewCtrl.review.author}}

1 star

2 stars

. . .


index.html

Using ng-submit to make the Form Work^ app.controller("ReviewController", function(){
 this.review = {};
});

app.js

ng-submit allows us to call a function when the form is submitted.

Stars: {{reviewCtrl.review.stars}}
{{reviewCtrl.review.body}}
by: {{reviewCtrl.review.author}}

We need to define this function. index.html Using ng-submit to make the Form Work^ app.controller("ReviewController", function(){
 this.review = {}; this.addReview = function(product) { product.reviews.push(this.review); };
});

Push review onto this product’s reviews array.

app.js

Similar Documents

Premium Essay

Case Study - Unme Jeans: Branding in Web 2.0

...Case Study - UnME Jeans: Branding in Web 2.0 ! By James Johnson BUS5629 - Integrated Internet Strategies Florida Institute of Technology Dr. Theresa Kraft November 17th, 2013 ! ! ! ! UnME Jeans Case Study Analysis Page 2 Summary UnME Jeans was a rising star in the world of junior denim fashion. The UnME brand focused on the individuality of teenage girls who coveted their designer-style jeans that featured glitter, jewels, and various forms of metalwork. UnME jeans were sold in more upscale department stores and specialty retailers and at premium price. ! Traditionally, UnME advertised to their target consumers using TV ads spots during popular programs for teenage girls, like Gossip Girl, American Idol, and One Tree Hill. They also took out full-page magazine print advertising in beauty and fashion magazines, as well as radio ads on popular stations. In addition, they had a corporate website and used online banner and display ads on the most popular websites for teenage girls. ! Margaret Foley, the brand manager for UnME Jeans, had trouble justify the expenses of advertising using traditional media outlets. Especially since the prices to purchase TV ads were increasing each year, despite declining TV audiences, and consumers’ who were skipping or delete TV ads from the programs they had recorded to watch later. In order to reduce costs, Foley asked the ad agency they were using to look into Web 2.0 social media options to see if there was a better...

Words: 1690 - Pages: 7

Premium Essay

Social Media

...Statement of the Problem This study was conducted to find out what are the impacts of social media to the social skills of the selected high school students of HSL-Braille College. Particularly, this study aims to answer the following questions: 1. What are the profiles of the respondents in terms of? 1. Age? 2. Gender? 3. Socio-economic status 4. Educational Background 2. What are the reasons why the selected high school students of HSL-Braille College wants social media? 3. How does a social medium affect the social skills of the respondents? Hypotheses Ho: Social media has no significant impact to the social skills of the selected high school students of HSL-Braille College school year 2013-2014. Hi social media has significant impact to the social skills of the selected high school students of HSL-Braille College school year 2013-2014. Scope and Limitation of the study This study was conducted to determine the impact of social media to the social Skills of the selected high school students. The respondents of this study are the Selected high school students of HSL-Braille College school year 2013-2014. HSL-Braille College 26c Durian extension pag-asa st. zone 1, signal village taguig city Telefax no. 541-7137 e-mail:hslbraillecollege04@yahoo.com Social Media: its impact to the physical and mental health of the selected high school students of...

Words: 1352 - Pages: 6

Free Essay

Final Project

...larger for me. I would make them a couple of sizes larger for the older customers who can’t see that well. I did like the graphics they are nice and clear to see. I do like that you have a quick view of the product and it shows you different sides of the product. You can click onto another link, but if you want to go back to home you have to hit the back button. Adding products to your cart is pretty simple just click on product and it adds it to your cart. I would change the way the site checks out. You have to click on my bag and it is way at the top of home page in a very small print to check out. Did not see it and I was confused for a moment. Looking at the site the designer did not use a css style. It appears to be a basic web design and a functional site. When clicking on the blog it seems to be a little busy to much is...

Words: 751 - Pages: 4

Free Essay

Social Media and Political Change

...and Libya. Protests seemed to have have also had profound effects in Yemen, Bahrain and Syria. Demonstrations have arisen in most other Arab states as well as Spain and Uganda. The role of social media in these uprisising has been dubbed the “Twitter revoulitons.” Does social media, really deserve all those accolades? Revoultions have been overthrowing oppressive governments long before web 2.0. Iranians in overthrew the Shah in 1979, Filipinos overthrew President Marcos in 1986, and the Communist bloc in Eastern Europe crumbled one after another in 1989. This paper will explore the phenomenon of social media nad its role in promoting and prompting progressive political change, particularly in countries with oppressive leaders. Social media has been defined as “a group of internet based applications that build on the ideological and technological foundations of Web 2.0, which allows the creation and exchange of user-generated content”. (Kaplan) “Web 2.0” is the name for internet platforms which allow for interactive participation by users thereof. It may be contrasted with Web 1.0 platforms, which simply provide content to users, without giving them the opportunity to interact with or modify that information online. This content is all considered user generated content. The OECd has specified there criteria for content to be classified as “user generated”: it should be available on a publicly accessible wegsite or aon a social networking site that is available to...

Words: 1429 - Pages: 6

Free Essay

Bis 320 Week 2

...Student Guide This week’s topics cover collaboration tools and Internet technologies and their use in meeting business goals. Reviewing some of the chapter one readings will help you with the other chapters. You will become familiar with Internet terminology, such as B2B, B2C, B2G, Web 2.0, and Social CRM. Knowledge of collaboration tools can make you very marketable as a business manager, because many companies use these tools in their team work. This week covers using these collaboration tools to improve communication as well as document sharing. Internet and Collaboration Tools OBJECTIVE: Determine how and when to use Internet technologies in business. Resources: Ch. 1 & 8 of MIS Essentials Content • Ch. 1: The Importance of MIS o Q1: Why is Introduction to MIS the Most Important Class in the Business School? o Q2: What is an Information System? o Q3: What is MIS? o Q4: Why is the Difference Between Information Technology and Information Systems Important to You? o Q5: What is Your Role in IS Security? • Ch. 8: E-Commerce, Web 2.0, and Social Networking o Q1: What Types of Interorganizational Systems Exist? o Q2: How do Companies use E-Commerce? o Q3: Why is Web 2.0 Important to Business? o Q4: How Does Social Capital Benefit You and Organizations? o Q5: How Does Social CRM Empower Customers? OBJECTIVE: Determine collaboration tool needs based on business function. Resources: Chapter Extension 2 of MIS Essentials, Article One of Business...

Words: 404 - Pages: 2

Premium Essay

Miss

...Table of Contents: 01. Executive Summary……………………………………..…..3-4 02. Company Description…………………………………………5 03. Product Description…………………………………………6-7 04. Market Analysis…………………………………….…….....8-9 05. Strategy and Implementation…….………………………10-13 06. Web Plan Description……………….…………………....14-16 07. Management Description……………..…………………..17-18 08. Financial Plan……………………….….……………….…19-22 09. Appendices……………………………..…………………..23-26 10. References……………………………...………………....……27 Page | 1 1.0 Executive Summary 1.1 Company Background Company name: Application World Sdn Bhd Address: Cyberia, Cyberjaya Telephone number: 03-42968891 Our business plan is primarily about creating and launching the mobile “Lunch Partner” application; a tool to help people connect with others by affording them the opportunity to meet other people like themselves during their lunch break. With our application, we offer people the gift of never having to suffer through a lonely lunch ever again, if they so wish. As students, we don’t have any fixed break times for us to have our lunch, as most students take different courses and subjects. This means that no matter how much you try to synchronise your schedule to that of your friends, you will inevitably come upon a time where you will have no available friends to share your lunch or breaks with. This scenario was the backbone of our motivation to create the Lunch Partner application. With our app, we help our customers in a few key ways. The first and most...

Words: 5367 - Pages: 22

Free Essay

Analysis of Linkedin

...[pic] LinkedIn: The Future By: Katarina Begonja Table of Contents Executive Summary...............................................1 Case Facts..............................................................2,3 Case Analysis.........................................................4,5,6 Recommendations.................................................7 Work Cited...............................................................8 Executive Summary Future of LinkedIn. Becoming more like Facebook. Despite being widely recognized as the undisputed champion of the professional networking industry, LinkedIn has made several recent changes to become more like the competition, most notably, Facebook. In an effort to attract daily users, LinkedIn has added many new features, such as, notifications and photo/video sharing. All of these features have long been available on Facebook. In addition to aiming for a similar user experience, LinkedIn also appears to be following in the footsteps of Facebook in regards to generating revenue. As users increasingly access these social networks via their mobile phone, LinkedIn has revamped their mobile app to include advertising. 1 Case Facts: -Updated version of their mobile app was launched in April. For the first time, it will have ads on the app, to generate revenue for LinkedIn. The CEO recognizes the task...

Words: 1290 - Pages: 6

Free Essay

Activity Based Costing

...According to a survey by social media consultancy Drizzlin, Vodafone is most admired by online social media users for its ads and promotions Drizzlin Media, a social media consultancy, has released the results of its survey on the most admired telecom brands based on social media conversations. According to the survey, Vodafone is the most admired telecom brand online with a score of 117.57 points. This brand was admired most for its ads and promotional messaging. In terms of products and services, BSNL Mobile is most admired. However, in terms of customer service, MTNL scored the highest while Vodafone was at the bottom of the stack. The survey also showed that despite the popularity of Facebook, only two telecom brands Tata Indicom and Vodafone are active on it. The survey monitored 10 telecom brands on six online platforms: blogs, Twitter, social networks (Facebook and Orkut), forums, YouTube and Mouthshut. About 7000 conversations were taken as a sample, of which relevant ones numbered 1631. Of the conversations where gender could be identified, 83 per cent were by men and six per cent were by women. Another revelation of the survey was that telecom companies in India are limited in their engagement of customers online. "We chose to analyse the buzz around telecom companies in India as the first of our surveys since telecom is a consumer intensive industry. Since the industry is so competitive, it becomes essential for telecom companies in India to understand what their consumers...

Words: 466 - Pages: 2

Premium Essay

Social Media

...With the invention of internet world has become a global village. It has become a very convenient source to send data in any form of text, voice, video, picture etc. to other a person living thousands of miles. This borderless world came with new ways for people to interact with one another. With the introduction of Social Media Platforms people around the world are now connected real-time without the hindrance of physical distance. The crowd which was once dispersed gathered around in creating small communities with fan following of similar interests. With the growing addiction in daily life use; Social Networking platforms have become a vital part of our daily life whether we want to be in touch with our loved ones, doing online business or just want to keep ourselves up to date with latest events happening around the globe. It has its positive and negative effects on different societies. My thesis is the positive side of Social Networks. I think Social Networks have given a new voice to people living in certain societies where it has become the only true medium to express themselves to the masses. A place where everyone can be united under one cause. In a world where media might not be as free as it might seem. Social Networking websites like twitter or facebook has made it possible for the news to be written by people who are actually experiencing the event. An example can be taken in the current situation of Syria where news reporters are banned to enter war affected...

Words: 413 - Pages: 2

Free Essay

Ks'D; F

...Answer 1 http://www.harrywinston.com/our-story/winston-story Harry Winston’s is an online jewelry store that features amazing design with images that mix typography and jewelry. It has different e-commerce features like: 1. Ubiquity: The website is available e for everyone across the globe; anyone can use it and shop according to their convenience and preference. 2. Interactivity: The website is user friendly and interactive, it has a search box where users can ask questions and they can get there queries resolved immediately. They even have catalogue where designs can been seen and there prices can be asked for. 3. Richness: The website is rich in terms of content and information. They have different sections for different occasions such as wedding, engagement etc. 4. Customization and Personalization: They treat each customer in a unique way, customers can have their own email account through which personalized services are provided to them. 5. Social Technology: The website is even connected to their face book and twitter page to interact with customers. http://www.cucuu.co.uk/ CuCuu is a online store that sells bags and accessories made from recycled materials. The design is simple and the shopping experience is fun. 1. Ubiquity: This website is available 24/7 for girls and females. It’s easily accessible from anywhere. 2. Social technology: The store is avaibale on social networking sites that are facebook...

Words: 1653 - Pages: 7

Premium Essay

Petries

...MGMT340 Petrie’s Electronic Case Questions Week 5 Question 1: Using the guidelines from this chapter and other sources, evaluate the usability of the page design depicted in PE Figure 8-1. Answer: Some of the words are in a different language, which is incorrect. If you want to have, different cultures able to use the page, have a setting that switches all content from English to Spanish, or whatever other languages needed. Page should not display information randomly in different languages. I like the click to act method they have. Overall, I believe the page has limited capabilities to help most users’ interactivity. Question 2: Chapter 8 encourages the design of a help system early in the design of the human interface. How would you incorporate help into the interface as shown in PE Figure 8-1? Answer: You need to think about what the user is likely to do if they do not know something when creating a help system. The help system needs to be simple as well as easy to access. Help messages should be short, to the point and easily understood. It can show the users how do to something. I would incorporate a help by explaining to guests how to look at their point’s record. That way if a user wants to know how he or she got the points the help system you design can show the most unknowledgeable computer person easy transition to the information they are looking for. Question 3: Describe how cookie crumbs could be used in this system. Are cookie crumbs...

Words: 425 - Pages: 2

Free Essay

Antonio Illescas, Systems Engeeniering

...SINFOCORP SRL Manual para crear Instalador VB.NET Tutorial para crear instalador de Proyecto en Visual Basic .NET Carlos Hidalgo Lache 1 SINFOCORP SRL Manual para crear Instalador VB.NET PROGRAMAS DE INSTALACIÓN Introducción Una vez que una aplicación VB.NET ha sido desarrollada, comprobada y compilada, debe ser instalada en las máquinas cliente donde será utilizada en el futuro. En ese proceso el entorno .NET suministra una serie de métodos y herramientas para realizar programas instaladores dependiendo del tipo de aplicación creada y de las características de dicha máquina cliente. El programa instalador debe ocuparse de cargar la aplicación en la máquina cliente así como cualquier otro archivo o recurso que ésta emplee en su funcionamiento, ya sea en el estado actual o en el futuro previsto. Se distinguen tres tipos de instalaciones: instalación XCOPY programa instalador de aplicación programa instalador de módulo Instalación XCOPY Es el método más sencillo de instalación y no precisa el uso de ninguna herramienta de Visual Studio.NET por lo que constituye un método accesible a cualquier desarrollo. Se basa en el proceso de copia de la carpeta de la aplicación en la máquina cliente utilizando para ello el comando XCOPY de MSDOS disponible en cualquier sistema Windows. Para utilizarlo debe accederse a la línea de comandos desde Inicio Þ Todos los Programas Þ Accesorios Þ Símbolo del Sistema y la sintaxis a emplear es XCOPY ruta_carpeta_origen...

Words: 4418 - Pages: 18

Free Essay

Hahaha

...started by Brad Fitzpatrick in 1999. Users could create a blog that usually served as a public diary, and then they could add people they know who also set up LiveJournal blogs as "friends." Friends' blog entries are aggregated on a single page, allowing users to see at a glance what their buddies are up to, like a proto-News Feed. The service was many people's first experience with a Web 2.0 application, and, in particular, the first for many teens. LiveJournal quickly acquired a reputation as a clearinghouse for suburban, adolescent angst - collections of lengthy, startlingly sincere lamentations of broken hearts, occasionally interspersed with awful, copied-and-pasted Dashboard Confessional lyrics and "Which 'Hey Arnold!' Character Are You?" quizzes. (I always shot for Gerald, but I'd always wind up being Eugene - or, on a good day, Mr. Hyunh. This was a source of mild consternation.) LiveJournal was, in many ways, a forerunner of much of the purportedly revolutionary social media environment we're in right now. After all, it was started before the word "blog" was even coined and before the phrase "Web 2.0" gained any sort of currency, and it predates both MySpace and Facebook by about half a decade. It was also among the first social media to receive the same flak that Facebook and Twitter catch on a regular basis now. You know the criticism: It's narcissistic. It's self-important. Nobody really cares how hilarious your cat looks when he's asleep. But I've never thought that...

Words: 673 - Pages: 3

Premium Essay

Career Plan Building

...Understanding your personal competencies will help you learn your strengths and weaknesses. I believe by doing that, it will shed some light on things that you may need to work on and perfect. It will allow you to list what you have and what needs perfected. Being able to communicate is key quality to being successful in a management position. Without communication nothing up or down the structure pole gets done. Leadership is what being a manager is. The strength of your competencies is what will give you employees that warm fuzzy feeling because they trust in your knowledge and position. Being a strong communicator will help you succeed professionally as well as in life. Sometimes when it comes to communicating, I can be a little detached. Other occasions I can be straightforward and intimidating. A lot of times people tend to shut down when they feel that they are dealing with someone who is aggressive. It is not my intension to seem aggressive, but at the same time I guess people who feel that way is somewhat weak in there competencies. I would have to dial back my approach to people when it comes to communicating and to have more patience in receiving information or feedback. Other times I feel that I need to communicate a little more. I am not big on people in general. So I would say that I am anti-social to a certain existent. Although I feel that I am an all around individual, there is always something that needs work. I cannot...

Words: 326 - Pages: 2

Premium Essay

Technology Discussion

...What didn’t work well? Guidelines Based on your experience, develop a set of guidelines that you would offer to others to help ensure global project success. You should focus a larger part of your discussion on this area. I am most interested in hearing about your guidelines for project success based on your experience in the project. Conclusion – brief summary of entire paper Chris Gunderson All, Despite a couple of technical difficulties I felt like the meeting was a real success via Skype.  My big takeaways were that of the five key contributors to the meeting none of us is really deeply using the "traditional" social media in our current environments.  Shad and Kerry both had some intriguing suggestions in Cisco Web Social and Submittal Exchange respectively - both sound like they have a lot of value to PM. There were some definite advantages to using Facebook as a marketing or PR tool but overall it seems like security concerns and its basic functionality may limit its uses for day-to-day project management.  Thanks everyone for taking the time to dial in today.  I look forward to hearing your takes on today's meeting. Gundy ME Overall I think the meeting went pretty good. I apologize for being slow getting people on the call. Maybe a lesson learned? I was also getting alot of distortion and cutting out on the call. Just...

Words: 1481 - Pages: 6