This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<frontend> | |
<routers> | |
<angularlist> | |
<use>standard</use> | |
<args> | |
<module>Luckyduck_Angularlist</module> | |
<frontName>angularlist</frontName> | |
</args> | |
</angularlist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Luckyduck_Angularlist_ListingController extends Mage_Core_Controller_Front_Action | |
{ | |
public function indexAction() | |
{ | |
$this->loadLayout(); | |
$this->renderLayout(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<default> | |
<reference name="head"> | |
<action method="addJs"> | |
<script>angularlist/angular.min.js</script> | |
</action> | |
</reference> | |
</default> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Luckyduck_Angularlist> | |
<version>0.1.0</version> | |
</Luckyduck_Angularlist> | |
</modules> | |
<global> | |
<blocks> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var angularlistApp = angular.module('angularlistApp', []); | |
angularlistApp.controller('ProductListCtrl', function($scope, $http) { | |
$http.get('<?php echo Mage::getBaseUrl()?>api/rest/products').success(function(data) { | |
$scope.products = data; | |
}); | |
}); | |
</script> | |
<div ng-app="angularlistApp"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) | |
{ | |
printf("Hello, world!\n"); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
std::cout << "Hello, world!" << std::endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hi!</title> | |
</head> | |
<body> | |
<p>Hello, world!</p> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, world!"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ausgabe in der Konsole | |
console.log('Hello world!'); | |
// Dialog-Fenster | |
alert('Hello world!'); | |
// im HTML Dokument: | |
document.write('Hello world'); |