hotfix: HomeController "Argument HomeController is not a"
This commit is contained in:
1 parent
24f596abae
commit
7a62d341bb
1 file changed
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
export default function (app) {
|
export default function (app) {
|
||||||
app.controller('HomeController', () => {
|
app.controller('HomeController', () => {
|
||||||
|
let fotorama;
|
||||||
let $tape = $('.tape-block');
|
let $tape = $('.tape-block');
|
||||||
let $fotorama = $tape.find('.tape-block__content');
|
let $fotorama = $tape.find('.tape-block__content');
|
||||||
|
|
||||||
@@ -17,7 +18,7 @@ export default function (app) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
let fotorama = $fotorama.fotorama().data('fotorama');
|
fotorama = $fotorama.fotorama().data('fotorama');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
fotorama.load([
|
fotorama.load([
|
||||||
{img: 'https://static.shburg.org/art/img/cat1.jpg'},
|
{img: 'https://static.shburg.org/art/img/cat1.jpg'},
|
||||||
|
|||||||
Reference in new issue
Block a user