cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <article ng-app="App">
	<section ng-controller="MainController">
		<div ng-repeat="day in fiveDay.list" class="forecast">
			<div class="day">
				<div class="weekday">
					<p>{{ day.dt*1000 | date}}</p>
					<!-- <p>{{ parseJsonDate(day.dt)}}</p> -->
				<div class="weather"><img ng-src="http://openweathermap.org/img/w/{{day.weather[0].icon}}.png"/></div>
				<div class="temp">{{day.weather[0].description}}</div>
				<div class="temp">Max {{ day.temp.max }}°</div>
				<div class="temp">Min {{ day.temp.min }}°</div>
	color: #fff;
	font-family: Trebuchet MS;
	margin: 0;
	background-color: #B3E5FC;
		font-size: 50px;
		margin-bottom: 30px;
	width: 95%;
	max-width: 1300px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 40px;
	overflow: hidden;
	width: 20%;
	float: left;
	cursor: pointer;
	-webkit-box-shadow: 0px 0px 18px 0px rgba(50, 50, 50, 0.08);
	-moz-box-shadow:    0px 0px 18px 0px rgba(50, 50, 50, 0.08);
	box-shadow:         0px 0px 18px 0px rgba(50, 50, 50, 0.08);
	opacity: 0.8;
		opacity: 0.9;
	overflow: hidden;
	position: relative;
	background-color: #00BCD4;
		font-size: 1.2rem;
		padding: 2px 20px;
		background-color: #0097A7;
		text-align: center;
		padding-top: 30px;
		padding-bottom: 30px;
		width: 50%;
		margin-right: auto;
		margin-left: auto;
		text-align: center;
			width: 80%;
		font-size: 17px;
		width: 100%;
		background-color: #fff;
		padding-top: 20px;
		padding-bottom: 20px;
		color: #212121;
		text-align: center;
		text-transform: capitalize;

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

//Controlador ↓↓↓
app.controller('MainController', ['$scope', 'forecast', function($scope, forecast) {
  forecast.success(function(data) {
		$scope.fiveDay = data;

// Crear un servicio en Angular ↓↓↓↓
app.factory('forecast', ['$http', function($http) { 
  return $http.get('//api.openweathermap.org/data/2.5/forecast/daily?id=3688689&lang=es&APPID=70af07427d73a583c4083ec4fba8c181&units=metric&cnt=5') 
		.success(function(data) { 
		  return data; 
		.error(function(err) { 
		  return err; 
Loading ..................