Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Declare controller in app.js

$
0
0

Hi everyone, I am having a problem with declaring controller in my app.js (I am new to both ionic and angularJS)

This is the additional code I have in app.js

var myApp = angular.module('starter', ['ionic'])
//additional code on running and configuration

myApp.controller ("venueCtrl", funciton($scope) {
});

The problem I am having is: If I declare a controller, the whole app shutdowns (it shows nothing but blank). I believe that is a problem because when I comment the controller part out, everything is back to work. Can someone help me out? I have learnt some basic angularJS so I can understand some basic concept.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>